Ejemplo n.º 1
0
 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>();
        }
Ejemplo n.º 4
0
 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>();
 }
Ejemplo n.º 5
0
 protected virtual void Awake()
 {
     owner = GetComponent <AIAgent>();
 }