Beispiel #1
0
        private static void OnTowerDeactivation(ITower tower)
        {
            string title = "Good job! Tower deactivated!";
            string body  = "Tower nº" + tower.Number + " in the " + Main.GetUppercaseNames(tower.Sector.Name) + ".";

            FireBasePush.SendMessage(title, body);
        }
Beispiel #2
0
        private static void OnTowerHijack(ITower tower, APIActivator oldActivator, APIActivator newActivator)
        {
            string title = "Huh? A tower has been hijacked!";
            string body  = "Tower nº" + tower.Number + " in the " + Main.GetUppercaseNames(tower.Sector.Name) + ", from " +
                           Main.GetUppercaseNames(oldActivator.ToString()) + " to " + Main.GetUppercaseNames(newActivator.ToString()) + "!";

            FireBasePush.SendMessage(title, body);
        }