Exemplo n.º 1
0
 public mg_ss_GameLogic()
 {
     Minigame     = MinigameManager.GetActive <mg_SmoothieSmash>();
     ItemManager  = new mg_ss_ItemManager();
     m_player     = new mg_ss_PlayerLogic();
     m_conveyor   = new mg_ss_ConveyorLogic();
     ChaosManager = new mg_ss_ChaosManager();
 }
Exemplo n.º 2
0
 public void Initialize(mg_ss_ConveyorLogic p_conveyorLogic, mg_ss_GameScreen p_screen, mg_SmoothieSmash p_minigame)
 {
     m_conveyorLogic  = p_conveyorLogic;
     m_splatterObject = p_screen.SplatterObject;
     m_splatterObject.Initialize(p_screen.BlobSplatterFinish, p_minigame.MainCamera);
     m_transformParent  = p_conveyorLogic.Conveyor;
     m_resources        = p_minigame.Resources;
     m_spawnedItems     = new List <mg_ss_ItemObject>();
     m_highlightTypes   = new List <mg_ss_EItemTypes>();
     m_spawnTop         = p_conveyorLogic.ItemSpawnPoint_Top;
     m_spawnBottom      = p_conveyorLogic.ItemSpawnPoint_Bottom;
     m_screenHalfWidth  = p_minigame.MainCamera.aspect * p_minigame.MainCamera.orthographicSize;
     m_screenHalfHeight = p_minigame.MainCamera.orthographicSize;
 }