예제 #1
0
        public ZoneController(ZoneModel zoneModel)
        {
            this.ZoneModel = zoneModel;

            this.combatController = new CoOpInstanceCombatController();
            this.combatController.CombatTurnCompleted = onCombatTurnCompleted;
        }
예제 #2
0
        public void Destroy()
        {
            if (isDestroyed)
            {
                return;
            }
            isDestroyed = true;

            for (int i = 0; i < AllPlayersinZone.Count; i++)
            {
                removePlayerReferences(AllPlayersinZone[i]);
            }
            combatController.StopAndClear();
            combatController = null;
            clientConnectionToServerPlayerModel = null;
            AllPlayersinZone = null;
            Completed        = null;
            ZoneModel        = null;
        }