Beispiel #1
0
 public static void ChangeCurrentEntity(EntityType entityType)
 {
     CurrentEntity = entityType;
     OnChangedCurrentEntity?.Invoke(CurrentEntity);
 }
Beispiel #2
0
 public static void ChangeCurrentEntity()
 {
     CurrentEntity = CurrentEntity == EntityType.Enemy ? CurrentEntity = EntityType.Player : CurrentEntity = EntityType.Enemy;
     OnChangedCurrentEntity?.Invoke(CurrentEntity);
 }