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> (); }
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; }