public void ResetEntity(bool skipCreatingEntities = false) { ResetAttributes(); ResetTags(); ResetEntityTriggers(); // TODO: Turn into method inventoryType = entityType.defaultInventoryType; if (inventoryType == null) { Debug.LogError(name + ": EntityType = " + entityType.name + " is missing a defaultInventoryType. Please fix."); return; } inventoryType.SetupEntity(this); if (!skipCreatingEntities) { inventoryType.Reset(this); } if (entityType.HasAnyInteractionSpotTypes()) { entityType.SetupInteractionSpotTypes(this); } }