Exemple #1
0
    void Start()
    {
        if (allBots == null)
        {
            allBots = new List <GardenEye>();
        }

        mutations = new List <SpawnableMutation>();

        allBots.Add(this);
        patrolPoint = gameObject.transform;


        player = Toolbox.Instance.GetPlayer().transform;

        particleSystem    = GetComponentInChildren <ParticleSystem>();
        audio             = GetComponent <AudioSource>();
        audio.maxDistance = GetComponent <SphereCollider>().radius;
        beam = GetComponentInChildren <EyeBeam>();

        mutations = new List <SpawnableMutation>();
        bob       = GetComponent <SimpleBob>();
    }
Exemple #2
0
 void Start()
 {
     player = Toolbox.Instance.GetPlayer().transform;
     eye    = GetComponent <EyeThatSees>();
     beam   = GetComponentInChildren <EyeBeam>();
 }