Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     player     = FindObjectOfType <CheapFirstPersonShooter>();
     zombie     = GetComponent <ZombInteract>();
     bodyGuards = FindObjectsOfType <BodyInteract>();
     HeadToClosestBody(GetClosestBody().position);
 }
Пример #2
0
 private void Start()
 {
     playerScript = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CheapFirstPersonShooter>();
 }