add camera position switching for static view rooms
This commit is contained in:
@@ -7,11 +7,12 @@ public class PickupableItem : Interactable
|
||||
|
||||
public override void Interact()
|
||||
{
|
||||
GameManager.Instance.StarShards++; // REMOVE, JUST HERE FOR TESTING BEFORE ADDING INVENTORY SYSTEM
|
||||
|
||||
Debug.Log("Picked up " + item.itemName + "!");
|
||||
MoveOutsideRange(); // I don't love this but if we destroy the object we probably need to do this first
|
||||
Destroy(gameObject);
|
||||
if (GameManager.Instance.Inventory.AddItem(item))
|
||||
{
|
||||
Debug.Log("Picked up " + item.itemName + "!");
|
||||
MoveOutsideRange(); // I don't love this but if we destroy the object we probably need to do this first
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
public override void MoveInsideRange()
|
||||
|
||||
Reference in New Issue
Block a user