Exemple #1
0
    void Start()
    {
        mController = GameObject.Find("MenuController").GetComponent <MenuController>();
        oController = GameObject.Find("OptionMenuController").GetComponent <OptionMenuController>();

        setSelectedOn(currentPosition, true);
    }
    public void Start()
    {
        if (instance == null)
        {
            //...set this one to be it...
            instance = this;
        }
        //...otherwise...
        else if (instance != this)
        {
            //...destroy this one because it is a duplicate.
            Destroy(gameObject);
        }

        //CurrentOptions = new Dictionary<string, OptionObjectButton>();
    }