protected void Start() { Resources = new mg_ss_Resources(); Resources.LoadResources(); GameMode = mg_ss_EGameMode.NORMAL; SetMainCamera("mg_ss_MainCamera"); ShowTitle(); }
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; }
public void Initialize(mg_ss_ItemGenerator_Normal p_itemGenerator, mg_ss_OrderSystemObject p_orderSystemObject) { m_itemGenerator = p_itemGenerator; m_orderSystemObject = p_orderSystemObject; mg_ss_Resources resources = MinigameManager.GetActive <mg_SmoothieSmash>().Resources; m_orderData = resources.OrderLengthData; m_specialOrderData = resources.SpecialOrderData; m_currentOrder = new mg_ss_Order(); m_nextOrder = new mg_ss_Order(); m_orderSystemObject.Initialize(m_currentOrder); GenerateNextGenericOrder(); GenerateOrder(); m_ordersCompleted = 0; }