예제 #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>();
        }
예제 #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>();
 }
예제 #5
0
 protected virtual void Awake()
 {
     owner = GetComponent <AIAgent>();
 }