Animals can now be bought in AnimalShop
if bought they will be placed somewhere random on the map
This commit is contained in:
parent
acd602c85a
commit
441ffb900a
34 changed files with 2387 additions and 265 deletions
21
Assets/Scripts/Shop/AnimalShop.cs
Normal file
21
Assets/Scripts/Shop/AnimalShop.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace Shop {
|
||||
|
||||
|
||||
public class AnimalShop : ElementStorage<Animal> {
|
||||
#region Singleton
|
||||
|
||||
public static AnimalShop instance;
|
||||
|
||||
private void Awake() {
|
||||
if(instance != null) {
|
||||
Debug.LogWarning("More than one instance of AnimalShop found");
|
||||
}
|
||||
|
||||
instance = this;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue