Exemplo n.º 1
0
 void Start()
 {
     musicSource     = this.gameObject.GetComponent <AudioSource>();
     joystick        = FindObjectOfType <Joystick> ();
     buttonSpace     = FindObjectOfType <FixedButtonSpace> ();
     buttonQ         = FindObjectOfType <FixedButtonQ> ();
     buttonE         = FindObjectOfType <FixedButtonE> ();
     _charController = GetComponent <CharacterController>();         //чтоб взаимодействовать со стенами
 }