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