public AIAgent owner; //Reference to AIAgent owner of behaviour private void Awake() // Awake runs before start, regardless whether or not the gameobject is enabled { owner = GetComponent <AIAgent>(); }
public AIAgent owner; //reference to the AIagent owner of behaviour public void Awake() { owner = GetComponent <AIAgent>(); }
public AIAgent agent; //AIAgent owner of the behaviour void Awake() { agent = GetComponent <AIAgent>(); }
public AIAgent owner; //Reference to AIAgent owner of behaviour private void Awake() // Runs before Start. Awake runs regardless whether or not the GameObject is enabled { owner = GetComponent <AIAgent>(); }
protected virtual void Awake() { owner = GetComponent <AIAgent>(); }