protected virtual void SetUpTile() { this.SelectionState = SelectionStates.NotSelected; manager = FindObjectOfType <UnityGrid>().gameObject; //What if there's more than one UnityGrid? cableTile = new CableTile(this.CableType); this.spriteRenderer = GetComponent <SpriteRenderer>(); SetUpTextures(); this.spriteRenderer.sprite = HiddenTexture; this.cableState = CableTile.CableStates.Hidden; }
public void Reveal() { GetRandomRotation(); this.cableState = CableTile.CableStates.Revealed; }