예제 #1
0
 public void CombinationFinished(float points)
 {
     CurrentBeatCombination = null;
     if (points > 0)
     {
         SuccessScreen.PlayAnim();
     }
     else
     {
         FailScreen.PlayAnim();
     }
     m_totalPoints += points;
 }
예제 #2
0
파일: Token.cs 프로젝트: Empheon/ENJAM2020
    public void Init(ButtonType type, BeatCombination bc)
    {
        m_buttonType = type;

        switch (type)
        {
        case ButtonType.DOG1:
            Circle.enabled   = false;
            Shiny.enabled    = false;
            m_symbol.enabled = false;

            Dog1.SetActive(true);

            return;
        }

        Color c;

        if (Get <InputController>().isXbox)
        {
            m_symbol.sprite = Get <GameSettingsBis>().XboxButtonSprite[type];
            if (Get <GameSettingsBis>().XboxButtonColor.TryGetValue(type, out c))
            {
                c.a            = 1;
                m_symbol.color = c;
                Circle.color   = c;
            }
            else
            {
                m_symbol.color = Get <GameSettingsBis>().ArrowButtonsColor;
                Circle.enabled = false;
                Shiny.enabled  = false;
            }
        }
        else
        {
            m_symbol.sprite = Get <GameSettingsBis>().PlayStationButtonSprite[type];
            if (Get <GameSettingsBis>().XboxButtonColor.TryGetValue(type, out c))
            {
                c.a            = 1;
                m_symbol.color = c;
                Circle.color   = Get <GameSettingsBis>().ArrowButtonsColor;
            }
            else
            {
                m_symbol.color = Get <GameSettingsBis>().ArrowButtonsColor;
                Circle.enabled = false;
                Shiny.enabled  = false;
            }
        }
    }
예제 #3
0
 private void ActivateCombination(BeatCombination beatCombination, float beatDuration)
 {
     beatCombination.Init(beatDuration);
     CurrentBeatCombination = beatCombination;
     CurrentBeatCombination.BeatAction();
 }