public void Initialize(mg_pt_GameLogic p_gameLogic)
 {
     m_inputManager = new mg_pt_InputManager(p_gameLogic.Minigame.MainCamera, this);
     m_gameLogic    = p_gameLogic;
     Initialize_Holders();
     Initialize_Toppings(m_gameLogic.Minigame.Resources);
 }
Beispiel #2
0
        public mg_pt_Order(mg_pt_GameLogic p_gameLogic)
        {
            m_gameLogic      = p_gameLogic;
            m_pizzaBaseCount = m_gameLogic.Minigame.Resources.PizzaBaseCount;
            m_sauces         = new List <mg_pt_OrderComponent>();
            m_sauces.Add(new mg_pt_OrderComponent(mg_pt_EToppingType.SAUCE_01));
            m_sauces.Add(new mg_pt_OrderComponent(mg_pt_EToppingType.SAUCE_02));
            m_cheese      = new mg_pt_OrderComponent(mg_pt_EToppingType.CHEESE);
            m_ingredients = new List <mg_pt_OrderComponent>();
            m_ingredients.Add(new mg_pt_OrderComponent(mg_pt_EToppingType.MIN_TOPPINGS));
            m_ingredients.Add(new mg_pt_OrderComponent(mg_pt_EToppingType.TOPPING_02));
            m_ingredients.Add(new mg_pt_OrderComponent(mg_pt_EToppingType.TOPPING_03));
            m_ingredients.Add(new mg_pt_OrderComponent(mg_pt_EToppingType.TOPPING_04));
            m_allToppings = new List <mg_pt_OrderComponent>();
            List <mg_pt_OrderComponent>   sauces = m_sauces;
            Action <mg_pt_OrderComponent> action = delegate(mg_pt_OrderComponent sauce)
            {
                m_allToppings.Add(sauce);
            };

            sauces.ForEach(action);
            m_allToppings.Add(m_cheese);
            m_ingredients.ForEach(delegate(mg_pt_OrderComponent ingredient)
            {
                m_allToppings.Add(ingredient);
            });
        }
Beispiel #3
0
        public void Initialize(mg_pt_GameLogic p_gameLogic)
        {
            m_gameLogic = p_gameLogic;
            GameObject instancedResource = m_gameLogic.Minigame.Resources.GetInstancedResource(mg_pt_EResourceList.GAME_PIZZA_BOARD);

            m_pizza = instancedResource.GetComponent <mg_pt_BoardPizzaObject>();
            MinigameSpriteHelper.AssignParentPositionReset(instancedResource, base.transform.Find("pizza").gameObject);
        }
Beispiel #4
0
 public void Initialize(mg_pt_GameLogic p_gameLogic, mg_pt_GameScreen p_gameScreen)
 {
     m_toppings   = new List <mg_pt_Topping>();
     m_coins      = new List <mg_pt_CoinObject>();
     m_gameLogic  = p_gameLogic;
     m_gameScreen = p_gameScreen;
     Reset();
 }
Beispiel #5
0
 private void RemoveLogic()
 {
     if (GameLogic != null)
     {
         GameLogic.Destroy();
     }
     GameLogic = null;
 }
 protected void Start()
 {
     m_gameLogic         = MinigameManager.GetActive <mg_Pizzatron>().GameLogic;
     m_gameLogic.LevelUp = this;
 }
Beispiel #7
0
 public void SetLogic(mg_pt_GameLogic p_logic)
 {
     GameLogic = p_logic;
 }