Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     BT_Attack    = FindObjectOfType <BT_Attack>();
     anim         = GetComponent <Animator>();
     rigidbody    = GetComponent <Rigidbody>();
     BotoesLivres = GetComponent <BotoesLivres>();
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     joystick    = FindObjectOfType <Joystick>();
     joystickPtr = FindObjectOfType <JoystickPointer>();
     BT_Attack   = FindObjectOfType <BT_Attack>();
     BT_PULO     = FindObjectOfType <BT_PULO>();
     anim        = GetComponent <Animator>();
     rigidbody   = GetComponent <Rigidbody>();
 }