コード例 #1
0
    void Awake()
    {
        button = GetComponent <Button>();

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