コード例 #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>();
 }
コード例 #2
0
        public AIAgent owner;   //reference to the AIagent owner of behaviour

        public void Awake()
        {
            owner = GetComponent <AIAgent>();
        }
コード例 #3
0
        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>();
 }