public void CombinationFinished(float points) { CurrentBeatCombination = null; if (points > 0) { SuccessScreen.PlayAnim(); } else { FailScreen.PlayAnim(); } m_totalPoints += points; }
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; } } }
private void ActivateCombination(BeatCombination beatCombination, float beatDuration) { beatCombination.Init(beatDuration); CurrentBeatCombination = beatCombination; CurrentBeatCombination.BeatAction(); }