private void Awake() { myNavMesh = Instantiate(myNavMesh); myNavMesh.Value = GetComponent <NavMeshAgent>(); animator = GetComponentInChildren <Animator>(); myAgent = Instantiate(myAgent); moveSpeed = Instantiate(moveSpeed); }
private void Awake() { isArmed.Value = false; engaged.Value = false; agentNavMesh = Instantiate(agentNavMesh); agentNavMesh.Value = GetComponent <NavMeshAgent>(); animator = GetComponentInChildren <Animator>(); myAgent = Instantiate(myAgent); moveSpeed = Instantiate(moveSpeed); targetPlayer.Value = myPlayer; targetWeapon.Value = myWeapon; myAgent.Value = this.gameObject; wayPoint.Value = waypoints[0]; }
public BTStop(VariableNavMeshAgent agent) { this.agent = agent; }
public BTMove(float speed, VariableNavMeshAgent agent, VariableGameObject goal) { this.speed = speed; this.goal = goal; this.agent = agent; }