Example #1
0
    void Awake()
    {
        button = GetComponent <Button>();

        if (Ps_DataStore.GetDifficulty() == difficultyLevel)
        {
            button.interactable = false;
        }
        else
        {
            button.interactable = true;
        }
    }
Example #2
0
 void Awake()
 {
     f_inventory = GetComponentInChildren <Cs_Inventory>();
     difficulty  = Ps_DataStore.GetDifficulty();
     Ps_DataStore.StoreResult(0);
 }