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