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>(); }
void Start() { player = Toolbox.Instance.GetPlayer().transform; eye = GetComponent <EyeThatSees>(); beam = GetComponentInChildren <EyeBeam>(); }