コード例 #1
0
ファイル: HealthGUIScript.cs プロジェクト: Bejno/Descension
    void Awake()
    {
        if (instance != null)
            Debug.LogError("There can only be one instance! D:");

        instance = this;
    }
コード例 #2
0
ファイル: HealthGUIScript.cs プロジェクト: schmech/GigaMech
    void Awake()
    {
        if (instance != null)
        {
            Debug.LogError("There can only be one instance! D:");
        }

        instance = this;
    }