How to achieve the best in these phases in the program? Is to define a global variable that stage?
Thank you very much!
CodePudding user response:
You the demand of object in UIPanel play show hidden can't solve!CodePudding user response:
First of all, this kind of game it is good to use the COCOS much more lightweightAnd then back to the problem is something called framework notification to each interface with this casual when can update their state of the interface, of course, including update button state
Certainly no global variables have these buttons this interface is an object. Consult it as it is, the internal variables of
CodePudding user response:
There anyone who can do the great god of mobile game app perspective functionCodePudding user response:
Is a state machine, you don't have ideaCodePudding user response:
Finite state machine FSM, you can search, the state machine several essential elements: 1 there is a state of total control Mgr, create all state controller, each state controller to realize the enter, stay, exit three functions, and then deal with related operationsCodePudding user response:
Tree 1111 with behavior