public void Deinteract() { switch (ECurrentState) { case EPickupStates.pickedup: transform.parent = null; ECurrentState = EPickupStates.putdown; break; } }
public void Interact(Collider col) { switch (ECurrentState) { case EPickupStates.putdown: transform.parent = col.transform; ECurrentState = EPickupStates.pickedup; break; } }
// Start is called before the first frame update void Start() { ECurrentState = EPickupStates.putdown; }