Exemplo n.º 1
0
    private void Awake()
    {
        if (Instance != null && Instance != this)
        {
            Destroy(this);
        }

        Instance = this;
    }
Exemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }