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; }
public void SetPawn(SM_Pawn pawn) { _pawn = pawn; }