void ReturnInitState() { _ustate = UnitState.UNIT_INIT;// = Init _vorigin = Vector2.zero; UnitOriginPointEvt evt = new UnitOriginPointEvt(); _signalBus.Fire(evt); }
void EnterStartState(Vector2 vp1) { _ustate = UnitState.UNIT_START; _vorigin = vp1; UnitOriginPointEvt evt = new UnitOriginPointEvt(); evt.vorigin = vp1; _signalBus.Fire(evt); }
void OnUnitOriginPointEvt(UnitOriginPointEvt args) { SetOriginPoint(args.vorigin); }