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

        instance = this;
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     instance = this;
 }