Exemple #1
0
    void ReturnInitState()
    {
        _ustate  = UnitState.UNIT_INIT;// = Init
        _vorigin = Vector2.zero;
        UnitOriginPointEvt evt = new UnitOriginPointEvt();

        _signalBus.Fire(evt);
    }
Exemple #2
0
    void EnterStartState(Vector2 vp1)
    {
        _ustate  = UnitState.UNIT_START;
        _vorigin = vp1;
        UnitOriginPointEvt evt = new UnitOriginPointEvt();

        evt.vorigin = vp1;
        _signalBus.Fire(evt);
    }
Exemple #3
0
 void OnUnitOriginPointEvt(UnitOriginPointEvt args)
 {
     SetOriginPoint(args.vorigin);
 }