public ObjectReference(GameObject _object, InteractableManager.ObjectType _type, PlayerAbilities.InteractableStates _state, Vector3 _position, bool _inUse) { m_object = _object; m_type = _type; m_state = _state; m_position = _position; m_inUse = _inUse; m_tagged = false; }
void IncrementCounter(InteractableManager.ObjectType _type) { switch (_type) { case InteractableManager.ObjectType.TOILET: { m_toiletCount++; m_currentCount = m_toiletCount; break; } case InteractableManager.ObjectType.PRINTER: { m_printerCount++; m_currentCount = m_printerCount; break; } case InteractableManager.ObjectType.FRIDGE: { m_fridgeCount++; m_currentCount = m_fridgeCount; break; } case InteractableManager.ObjectType.TABLE: { m_tableCount++; m_currentCount = m_tableCount; break; } case InteractableManager.ObjectType.DOOR: { m_doorCount++; m_currentCount = m_doorCount; break; } case InteractableManager.ObjectType.WATERCOOLER: { m_waterCount++; m_currentCount = m_waterCount; break; } default: { m_currentCount = 0; break; } } }