Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 void Awake()
 {
     // Make a copy of the fixedDeltaTime, it defaults to 0.02f, but it can be changed in the editor
     instance = this;
 }