Esempio n. 1
0
 void Start()
 {
     netManager = GameObject.FindObjectOfType <NetworkManager> ();
     charCtlr   = gameObject.GetComponent <CharacterController> ();
     h          = gameObject.GetComponent <Health> ();
     fps        = gameObject.GetComponent <FirstPersonController> ();
     aim        = gameObject.GetComponentInChildren <Chrosshair> ();
     bacnaje    = gameObject.GetComponent <BacanjeGrudve> ();
 }
Esempio n. 2
0
 void Start()
 {
     netManager         = GameObject.FindObjectOfType <NetworkManager> ();
     anim               = gameObject.GetComponent <Animator> ();
     bacnjeGrudve       = gameObject.GetComponent <BacanjeGrudve> ();
     bacnjeGrudve.isBot = true;
     GrudveBroj         = 5f;
     h       = gameObject.GetComponent <Health> ();
     h.isBot = true;
 }