Beispiel #1
0
    public void SetDestination(Vector3 destination, Vector3 goOutDestination)
    {
        m_destination      = destination;
        m_goOutDestination = goOutDestination;

        CharNaviCtrl ctrl = this.GetComponent <CharNaviCtrl>();

        ctrl.SetNavTarget(destination);
    }
Beispiel #2
0
    // Use this for initialization
    protected virtual void Start()
    {
        m_unit.Initialize();

        m_naviCtrl = this.GetComponent <CharNaviCtrl>();
    }