// Use this for initialization void Start() { ais = this.GetComponent <AISensors> (); brain = this.GetComponent <Brain> (); brain.action_completed = true; // There is no previous action, so just start this at true top_impossible_actions = 0; fitness = 0; }
public AIActor(){ orientation = new Vector3(1, 1, 0); orientation.Normalize(); desiredDirection = orientation; sensors = new AISensors(); nodesIamIn = new List<AINode>(4); // <== assuming that an actor will not occupy more then // 4 nodes -> this could be a problem in case of // of really large actors. }