1) Refactor Project Architecture 2) Add Assets 3) Change Prefabs 4) Change Input Method (now using PlayerInput Component) 5) Add Weapon Prefab & Simple Script with Shooting() 6) Add Menu Scene & two btn functions: QuitGame() & PlayGame()
13 lines
301 B
C#
13 lines
301 B
C#
using UnityEngine;
|
|
|
|
public class TestGraph : MonoBehaviour
|
|
{
|
|
[SerializeField] private AnimationCurve _curve;
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
Keyframe keyframe = new Keyframe(Time.time, transform.position.x, 0,0,0,0);
|
|
_curve.AddKey(keyframe);
|
|
}
|
|
}
|