Exemplo n.º 1
0
 void Start()
 {
     if (ins == null)
     {
         ins = this;
     }
     else if (ins != this)
     {
         Destroy(this);
     }
     DontDestroyOnLoad(gameObject);
     allItems = new List <Item>(Resources.LoadAll <Item>("Items"));
 }