public VisibleSectorsStrategyRadius(SectorManagerUnity sectorManagerUnity, SectorManager sectorManager, Player player, PlayerUnity playerUnity)
 {
     this.sectorManager = sectorManager;
     this.player = player;
     this.playerUnity = playerUnity;
     this.sectorManagerUnity = sectorManagerUnity;
 }
示例#2
0
        public CubeWorld(ICWListener cwListener, ICWFxListener fxListener)
        {
			this.cwListener = cwListener;
            this.fxListener = fxListener;
            this.sectorManager = new SectorManager(this);
			this.tileManager = new TileManager(this);
			this.itemManager = new ItemManager(this);
			this.avatarManager = new AvatarManager(this);
			this.dayCycleManager = new DayCycleManager(this);
        }
 public VisibleSectorsStrategyAll(SectorManagerUnity sectorManagerUnity, SectorManager sectorManager)
 {
     foreach (Sector sector in sectorManager.sectors)
         sectorManagerUnity.GetSectorUnityFromCache(sector);
 }
示例#4
0
        public void Clear()
        {
            stats = null;
			
			sectorManager.Clear();
			sectorManager = null;
			
			tileManager.Clear();
			tileManager = null;
			
			itemManager.Clear();
			itemManager = null;
			
			avatarManager.Clear();
			avatarManager = null;
			
			dayCycleManager.Clear();
			dayCycleManager = null;

            gameplay.Clear();
            gameplay = null;
		}