Пример #1
0
    void Awake()
    {
        if (instance != null)
            Debug.LogError("There can only be one instance! D:");

        instance = this;
    }
Пример #2
0
    void Awake()
    {
        if (instance != null)
        {
            Debug.LogError("There can only be one instance! D:");
        }

        instance = this;
    }