public void Begin() { if (current != null) { Debug.LogError("You cannot nest animGroups"); } else { current = this; } }