コード例 #1
0
    public void Start(Action <GameplaySequence> onFinish)
    {
        //NOT A MONOBEHAVIOUR START METHOD
        _currentScore = 0;
        _onFinish     = onFinish;

        StartingBoard.DisplayText("", true);
        OtherBoard.DisplayText("", true);
        StartingBoard.Activate(null, false);
        GameplayBoard.BoardFinished += OnBoardFinished;
        _scoreDisplayer.ResetDisplayer();
        Debug.Log("Starting sequence " + RequiredScore.ToString());
    }
コード例 #2
0
 private void SwitchBoards(GameplayBoard finishedBoard, TargetTrigger trigger)
 {
     if (finishedBoard == StartingBoard)
     {
         StartingBoard.Deactivate();
         OtherBoard.Activate(trigger, true);
     }
     else
     {
         OtherBoard.Deactivate();
         StartingBoard.Activate(trigger, true);
     }
 }