Exemple #1
0
 static void LogFileCollision(BaseObject object1, BaseObject object2)
 {
     File.AppendAllText("LogCollision.log", $"{DateTime.Now}:{DateTime.Now.Millisecond} : В точке ({object1.DirX}; {object1.DirY}) столкнулись {object1.GetType().Name} и {object2.GetType().Name}\n");
 }
Exemple #2
0
 static void LogConsoleCollision(BaseObject object1, BaseObject object2)
 {
     Console.WriteLine($"{DateTime.Now}:{DateTime.Now.Millisecond} : В точке ({object1.DirX}; {object1.DirY}) столкнулись {object1.GetType().Name} и {object2.GetType().Name}");
 }