示例#1
0
    // +--------+-------------------------------------------------------------------------------------------------------------------------------------------------
    // | Events |
    // +--------+

    // Called when the player clicks on one of the add to research buttons
    void OnClick(int amount)
    {
        if (!GameObject.Find("CenterWindow").transform.Find("NewTreatment").gameObject.activeInHierarchy)
        {
            GameControllerScript.AddToResearch(amount);
        }
    }