private void Start() { rb = GetComponent <Rigidbody2D>(); coll = GetComponent <Collider2D>(); anim = GetComponent <Animator>(); JumpButton.GetInstance().OnClickJump += Controller_OnJump; ShortJumpButton.GetInstance().OnClickJump += Controller_OnShortJump; state = State.running; CountGame.Increment(); }
void Awake() { // Make a copy of the fixedDeltaTime, it defaults to 0.02f, but it can be changed in the editor instance = this; }