//:::::::::::::::::::::::::::: Hiden functions :::::::::::::::::::::::::::::::::::::::: void Start() { if (imGood) { HiveMind.imaGoodGuy(this); } else { HiveMind.imaBadGuy(this); } }
//:::::::::::::::::::::::::::: Hiden functions :::::::::::::::::::::::::::::::::::::::: void Start() { if (imGood) { HiveMind.imaGoodGuy(this); } else { HiveMind.imaBadGuy(this); } sphere = this.gameObject.GetComponent <CharacterController> (); //squaring distances close = close * close; }
protected override void Start() { if (amIgood) { HiveMind.imaGoodGuy(this); } else { HiveMind.imaBadGuy(this); } atackRange = atackRange * atackRange; sightDistance = sightDistance * sightDistance; InvokeRepeating("updateState", Random.value, 0.7f); objectivePosition = this.transform.position; base.Start(); }
//:::::::::::::::::::::::::::: Hiden functions :::::::::::::::::::::::::::::::::::::::: override protected void Start() { if (imGood) { HiveMind.imaGoodGuy(this); } else { HiveMind.imaBadGuy(this); } //squaring distances close = close * close; sqInRange = inRange * inRange; base.Start(); }
//:::::::::::::::::::::::::::: Hiden functions :::::::::::::::::::::::::::::::::::::::: override protected void Start() { animator = this.gameObject.GetComponent <Animator> (); if (imGood) { HiveMind.imaGoodGuy(this); } else { HiveMind.imaBadGuy(this); } //squaring distances close = close * close; sqInRange = inRange * inRange; engage = engage * engage; // Laser inisialization for (int i = 0; i < 3; i++) { lasers [i] = lasersGO [i].GetComponent <Weapon> (); } base.Start(); }