public override void OnTap(TapGesture gesture) { WABaseState state = mISM.GetFromDic <WABaseState>(mISM.GetCurrentFirstState()); if (state != null) { state.OnTap(gesture); } }
public override void OnSimpleFingerUp(object v) { WABaseState state = mISM.GetFromDic <WABaseState>(mISM.GetCurrentFirstState()); if (state != null) { state.OnSimpleFingerUp(v); } }
public override void OnPinch(PinchGesture gesture) { base.OnPinch(gesture); WABaseState state = mISM.GetFromDic <WABaseState>(mISM.GetCurrentFirstState()); if (state != null) { state.OnPinch(gesture); } }
void Update() { if (mISM != null) { mISM.Update(); } WABaseState state = mISM.GetFromDic <WABaseState>(mISM.GetCurrentFirstState()); //Debug.Log(state.mName); }