// Instantiate hole prefab for animal in saveZones positions
 void SetAnimalHole(ZonesManager zm, GameObject prefab)
 {
     for (int i = 0; i < zm.saveZones.Length; i++)
     {
         Instantiate(prefab, zm.saveZones[i], false);
     }
 }
    protected override void Start()
    {
        base.Start();
        GameObject handler = GameObject.FindGameObjectWithTag(WayPointsTags.chicken);

        escapePoint = handler.GetComponent <ZonesManager>();
    }
Пример #3
0
 protected override void Start()
 {
     zm = GameObject.FindGameObjectWithTag(WayPointsTags.eagle).GetComponent <ZonesManager>();
     eaglePatrolPoint   = zm.eaglePatrolPoint.position;
     eagleWaitPoint     = zm.transform;
     transform.position = eagleWaitPoint.position;
     fow            = zm.GetComponent <FieldOfView>();
     eaglePatrolPos = GameObject.FindGameObjectWithTag(WayPointsTags.eaglePatrol).transform.position;
     StartCoroutine("Secure");
 }
Пример #4
0
    protected virtual void Awake()
    {
        GameObject handler = GameObject.FindGameObjectWithTag(zoneHandlerTag);

        zonesManager = handler.GetComponent <ZonesManager>();
    }