public void SetDestination(Vector3 destination, Vector3 goOutDestination) { m_destination = destination; m_goOutDestination = goOutDestination; CharNaviCtrl ctrl = this.GetComponent <CharNaviCtrl>(); ctrl.SetNavTarget(destination); }
// Use this for initialization protected virtual void Start() { m_unit.Initialize(); m_naviCtrl = this.GetComponent <CharNaviCtrl>(); }