Ejemplo n.º 1
0
 public void Awake()
 {
     CheckSpecial = new CheckSpecialState(this);
     CreateNew = new CreateNewState(this);
     RemoveState = new RemoveCombinationState(this);
     GameOverState = new GameOverState(this);
     WinState = new WinState(this);
     FieldState = new Field(this);
     //PauseState = new PauseState(this);
 }
Ejemplo n.º 2
0
    public void Awake()
    {
        Instance                  = this;
        InitState                 = GetComponent <InitState>();
        CheckSpecialState         = GetComponent <CheckSpecialState>();
        CreateNewChuzzlesState    = GetComponent <CreateNewChuzzlesState>();
        RemoveState               = GetComponent <RemoveCombinationState>();
        GameOverState             = GetComponent <GameOverState>();
        WinState                  = GetComponent <WinState>();
        FieldState                = GetComponent <FieldState>();
        WinCheckSpecialState      = GetComponent <WinCheckSpecialState>();
        WinCreateNewChuzzlesState = GetComponent <WinCreateNewChuzzlesState>();
        WinRemoveCombinationState = GetComponent <WinRemoveCombinationState>();


        Level        = GetComponent <Level>();
        StageManager = GetComponent <StageManager>();
        PointSystem  = GetComponent <Points>();
    }