public void SwitchPositions() { position = resourceManager.NewPosition(); resourceManager.AddPosition(position); transform.position = position.transform.position; transform.rotation = position.transform.rotation; }