Exemple #1
0
    public int CompareTo(object obj)
    {
        PuzzlePhase otherPuzzle = obj as PuzzlePhase;

        if (order < otherPuzzle.order)
        {
            return(-1);
        }
        return(1);
    }
Exemple #2
0
    public void ReportPhaseComplete(PuzzlePhase phase)
    {
        puzzlePhases.Remove(phase);
        Destroy(phase.gameObject);

        if (puzzlePhases.Count == 0)
        {
            PuzzleCompleted();
        }
        else
        {
            SetNextPhaseUp();
        }
    }
 void Start()
 {
     myPhase = GetComponentInParent <PuzzlePhase>();
 }