Exemplo n.º 1
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
Exemplo n.º 2
0
    void Awake()
    {
        instantiate = GetComponent <InstantiatePrefabs>();


        rig = GetComponent <Rigidbody2D>();

        Destroy(this.gameObject, 3f);
    }