void Update() { switch (State) { case SeedState.ForSale: if (isInteractable && Input.GetKeyDown(KeyCode.E)) { int price = GetPrice(); if (WC.CanAfford(price)) { WC.SpendDollars(price); WC.EquipSeed(this); UpdateSeedState(SeedState.InInventory); } } break; case SeedState.InInventory: break; case SeedState.InHand: break; case SeedState.Planted: break; case SeedState.Discarded: break; } }