Exemple #1
0
 public void printStat()
 {
     Console.WriteLine("--- Stats ---");
     Console.WriteLine($"Galaxies: {Galaxy.GetActiveInstances() }");
     Console.WriteLine($"Stars: {Star.GetActiveInstances() }");
     Console.WriteLine($"Planets: {Planet.GetActiveInstances() }");
     Console.WriteLine($"Moons: {Moon.GetActiveInstances() }");
     Console.WriteLine("--- End of stats ---\n");
 }
Exemple #2
0
 int ICountList.GetActiveInstances()
 {
     return(Star.GetActiveInstances());
 }