Beispiel #1
0
 private void EnterComboStage(EComboType comboType, int comboCount)
 {
     if (comboCount == 0)
     {
         currentInput.comboCount = 0;
     }
     _animator.SetInteger("ComboCounter", comboCount);
     _animator.SetInteger("ComboType", (int)comboType);
 }
Beispiel #2
0
    public void SetComboTypeAndData(EComboType type, int rewardAmount, int shipAmount = 0)
    {
        if (type == EComboType.E_COMBO_AMOUNT)
        {
            if (ShipAmount != null)
            {
                ShipAmount.gameObject.SetActive(true);
                ShipAmount.text = "x" + shipAmount;
            }
        }
        else if (type == EComboType.E_COMBO_UNIQUES)
        {
            for (var i = 0; i < ShipUniques.Count; ++i)
            {
                ShipUniques[i].SetActive(false);
            }
        }
        else if (type == EComboType.E_COMBO_SHAPE)
        {
            if (Shape != null)
            {
                Shape.gameObject.SetActive(true);
            }

            if (ShipAmount != null)
            {
                ShipAmount.gameObject.SetActive(true);
                ShipAmount.text = "x" + shipAmount;
            }
        }

        if (AmmoReward != null)
        {
            //AmmoReward.text = "+" + rewardAmount;
            if (type == EComboType.E_COMBO_UNIQUES)
            {
                if (rewardAmount == 2)
                {
                    AmmoReward.text     = "2-COLOR\nCOMBO";
                    AmmoReward.fontSize = 44;
                }
                else if (rewardAmount == 4)
                {
                    AmmoReward.text     = "3-COLOR\nCOMBO";
                    AmmoReward.fontSize = 52;
                }
                else if (rewardAmount == 6)
                {
                    AmmoReward.text     = "4-COLOR\nCOMBO";
                    AmmoReward.fontSize = 60;
                }
                else
                {
                    AmmoReward.text     = "1-COLOR\nCOMBO";
                    AmmoReward.fontSize = 36;
                }
            }
            else if (type == EComboType.E_COMBO_SHAPE)
            {
                if (rewardAmount > 1)
                {
                    AmmoReward.text     = "\nBONUS\nTARGETS!";
                    AmmoReward.fontSize = 38;
                }
                else
                {
                    AmmoReward.text     = "\nBONUS\nTARGET!";
                    AmmoReward.fontSize = 38;
                }
            }
        }
    }