A simple state machine to setup the city building game. Serves as a main() program. By: NeilDG
Inheritance: MonoBehaviour
示例#1
0
    // Use this for initialization
    void Start()
    {
        BuilderSetupHandler.RegisterEventReceiver(BuilderSetupHandler.BuilderStateType.SETUP_TILE, this.SetupWorldWithPlaceholderTileset);

        this.tileData = new BaseTile[GameConstants.TILE_COUNT_X, GameConstants.TILE_COUNT_Y];
    }
示例#2
0
 void Awake()
 {
     sharedInstance    = this;
     this.currentState = BuilderStateType.NONE;
     this.InitializeStateTable();
 }
 void Awake()
 {
     sharedInstance = this;
     this.currentState = BuilderStateType.NONE;
     this.InitializeStateTable();
 }