Exemplo n.º 1
0
        // ReSharper disable once UnusedMember.Local
        private void Start()
        {
            try
            {
                Instance = this;

                // Initialize properties
                Logger.Info($"Setting up {nameof(KeyManager)}");
                KeyManager = new KeyManager(this);
                Logger.Info($"Setting up {nameof(PlayerManager)}");
                PlayerManager = new PlayerManager(this);
                Logger.Info($"Setting up {nameof(SphereAction)}");
                SphereAction = new SphereAction();
                Logger.Info($"Setting up {nameof(InstantBuilding)}");
                InstantBuilding = new InstantBuild(this);
                Logger.Info($"Setting up {nameof(KillAllPlayers)}");
                KillAllPlayers = new KillAllPlayers(this);
                Logger.Info($"Setting up {nameof(DestroyBuildings)}");
                DestroyBuildings = new DestroyBuildings(this);
                Logger.Info($"Setting up {nameof(DestroyTrees)}");
                DestroyTrees = new DestroyTrees(this);
                Logger.Info($"Setting up {nameof(Aura)}");
                Aura = new Aura(this);
                Logger.Info($"Setting up {nameof(ChatManager)}");
                ChatManager = new ChatManager(this);
                Logger.Info($"Setting up {nameof(VoiceManager)}");
                VoiceManager = new VoiceManager(this);
                Logger.Info("Initialization completed!");
            }
            catch (Exception e)
            {
                Logger.Exception("Error initializing properites", e);
            }
        }
Exemplo n.º 2
0
 // ReSharper disable once UnusedMember.Local
 private void Start()
 {
     try
     {
         // Initialize properties
         Logger.Info("Setting up KeyManager");
         KeyManager = new KeyManager(this);
         Logger.Info("Setting up SphereAction");
         SphereAction = new SphereAction();
         Logger.Info("Setting up InstantBuilding");
         InstantBuilding = new InstantBuild(this);
         Logger.Info("Setting up KillAllPlayers");
         KillAllPlayers = new KillAllPlayers(this);
         Logger.Info("Setting up DestroyBuildings");
         DestroyBuildings = new DestroyBuildings(this);
         Logger.Info("Setting up DestroyTrees");
         DestroyTrees = new DestroyTrees(this);
         Logger.Info("Setting up Aura");
         Aura = new Aura(this);
         Logger.Info("Initialization completed!");
     }
     catch (Exception e)
     {
         Logger.Exception("Error initializing properites", e);
     }
 }