Beispiel #1
0
        public GlassGridVisual(Transform transform, Match3.GemGridPosition gemGridPosition)
        {
            this.transform       = transform;
            this.gemGridPosition = gemGridPosition;

            transform.gameObject.SetActive(gemGridPosition.HasGlass());

            gemGridPosition.OnGlassDestroyed += GemGridPosition_OnGlassDestroyed;
        }
Beispiel #2
0
 private void GemGridPosition_OnGlassDestroyed(object sender, EventArgs e)
 {
     transform.gameObject.SetActive(gemGridPosition.HasGlass());
 }