示例#1
0
 public virtual void Initialize(SM_Pawn pawn, float speed, float turnSpeed)
 {
     _pawn      = pawn;
     _nma       = pawn.gameObject.GetComponentInChildren <UnityEngine.AI.NavMeshAgent>();
     _control   = pawn.gameObject.GetComponent <CharacterController>();
     _speed     = speed;
     _turnSpeed = turnSpeed;
 }
示例#2
0
 public void SetPawn(SM_Pawn pawn)
 {
     _pawn = pawn;
 }