Home > other >  Excuse me the card games design in different stages of how to control the game?
Excuse me the card games design in different stages of how to control the game?

Time:09-27

Pure novice self-study unity, is doing a poker game, the game will have a card, for example, betting, play at different stages, such as different stages can operate on the UI (button),

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 lightweight
And 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 function

CodePudding user response:

Is a state machine, you don't have idea

CodePudding 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 operations

CodePudding user response:

Tree 1111 with behavior
  • Related