//private bool hovering = false; // Use this for initialization void Start() { sc = GetComponentInParent <SelectionCust> (); sr = GetComponent <SpriteRenderer> (); bu = GetComponentInParent <Button> (); col = bu.colors.disabledColor; }
// Use this for initialization void Start() { selection = GetComponent <SelectionCust> (); levelPanel = GetComponentInChildren <Canvas> (); pm = FindObjectOfType <PlayerManager> (); //Make sure all level panels are turned off at the start. levelPanel.gameObject.SetActive(false); }