void Awake()
 {
     if (Instant == null)
     {
         Instant = this;                 //(유사 싱글톤,와아!)
     }
 }
Ejemplo n.º 2
0
 public void setSlot(inventory attachedInventory, int SlotID, container attachedContainer)
 {
     this.SlotID            = SlotID;
     this.attachedContainer = attachedContainer;
     myStack          = attachedInventory.getStackInSlot(SlotID);
     inventoryManager = inventoryManager.INSTANCE;
     updateSlot();
 }
Ejemplo n.º 3
0
 private void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
     }
     instance = this;
     DontDestroyOnLoad(transform.root.gameObject);
 }
Ejemplo n.º 4
0
 void Awake()
 {
     player       = GetComponent <playerManager>();
     inventory    = GetComponent <inventoryManager>();
     startSequnce = new List <IGameManager>();
     startSequnce.Add(player);
     startSequnce.Add(inventory);
     StartCoroutine(startupManagers());
 }
Ejemplo n.º 5
0
 private void Awake()
 {
     INSTANCE = this;
 }
Ejemplo n.º 6
0
 void Start()
 {
     player           = FindObjectOfType <player>();
     inventoryManager = inventoryManager.INSTANCE;
 }