void Start () { winCondition = (gameLogic.winConditions as WinDestroyTilesFrost); if (winCondition == null) { Destroy(transform.parent.gameObject); return; } if (targetScore != null) { targetScore.SetActive(false); } label = GetComponent<UILabel>(); StartCoroutine(UpdateValues()); LayeredBoardPiece.OnNumLayersDecreased += OnFrostChanged; LayeredBoardPiece.OnLayeredBoardPieceInit += OnFrostChanged; }
void Start() { winCondition = (gameLogic.winConditions as WinDestroyTilesFrost); if (winCondition == null) { Destroy(transform.parent.gameObject); return; } if (targetScore != null) { targetScore.SetActive(false); } label = GetComponent <UILabel>(); StartCoroutine(UpdateValues()); LayeredBoardPiece.OnNumLayersDecreased += OnFrostChanged; LayeredBoardPiece.OnLayeredBoardPieceInit += OnFrostChanged; }