public override bool onMessage(Message message) { messageType = message.msg; switch (message.msg) { case MessageType.Msg_Space: case MessageType.Msg_Push: firstPanel.changeState(ExitMode.Instance); return(true); case MessageType.Msg_Left: firstPanel.changeState(LifeModeChooseState.Instance); return(true); case MessageType.Msg_Right: case MessageType.Msg_SwipeRight: firstPanel.changeState(TimeModeChooseState.Instance); return(true); case MessageType.Msg_Esc: if (Screen.fullScreen) { Singleton.WindowModeChange(); } else { Singleton.FullScreenSet(); } return(true); default: return(false); } }
public override bool onMessage(Message message) { if (message.msg == MessageType.Msg_SwipeRight || message.msg == MessageType.Msg_Esc) { firstPanel.changeState(TimeModeChooseState.Instance); return(true); } return(false); }