void Update() { if (Input.GetKeyDown(KeyCode.Space)) { spawnee.CreateSpawn(); } }
public void OnLooting() { if (!isChestOpened) { isChestOpened = true; chestOpened.SetActive(isChestOpened); gameObject.SetActive(!isChestOpened); spawner.CreateSpawn(); } }