public int CompareTo(object obj) { PuzzlePhase otherPuzzle = obj as PuzzlePhase; if (order < otherPuzzle.order) { return(-1); } return(1); }
public void ReportPhaseComplete(PuzzlePhase phase) { puzzlePhases.Remove(phase); Destroy(phase.gameObject); if (puzzlePhases.Count == 0) { PuzzleCompleted(); } else { SetNextPhaseUp(); } }
void Start() { myPhase = GetComponentInParent <PuzzlePhase>(); }