コード例 #1
0
    //private bool hovering = false;

    // Use this for initialization
    void Start()
    {
        sc = GetComponentInParent <SelectionCust> ();
        sr = GetComponent <SpriteRenderer> ();
        bu = GetComponentInParent <Button> ();

        col = bu.colors.disabledColor;
    }
コード例 #2
0
    // 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);
    }