Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     m_AllWordNum = 0;
     if (Instance != null)
     {
         Destroy(Instance);
         LogManager.Log("Clear CorePlayManager");
     }
     Instance = this;
     m_Status = GameStatus.Idle;
     m_Horn.SetActive(false);
     m_InputCheck = new CorePlayInputCheck(this);
     m_AutoPlay   = Instantiate(ResourceLoadUtils.Load <GameObject>("CorePlay/AutoPointer")).GetComponent <CorePlayAutoPlay>();
     m_AutoPlay.Close();
     CorePlayInputCheck.SentenceAllRightEvent.RemoveAllListeners();
     m_TapCreator = new RhythmTapCreator();
     m_TapCreator.SetManager(this);
     m_VoiceCreator = new RhythmVoiceCreator();
     PageManager.Instance.CurrentPage.GetNode <CalculateNode>().ShowMainSliderAndPauseButton();
     Reset();
     if (!m_EditMode)
     {
         CalcCorePlayData();
         StartLogic();
     }
 }
Exemplo n.º 2
0
    public CorePlayBossWar(CorePlayInputCheck inputCheck)
    {
        m_Timer = 0;
        m_CurrentSentenceIndex = 0;
        m_TapCreator           = new CorePlayBossTapCreator();
        m_VoiceCheck           = new BossWarVoiceCheck(this);
        m_BossLife             = new BossLife(CorePlayData.BossLife);

        CorePlaySceneManager.bossEnterFinishEvent.AddListener(CGFinishCallback);
        SetEventListener(BossAttackFinishEvent, BossAttackFinishCallback);
        SetEventListener(BossFinishEvent, BossFinishCallback);
        m_InputCheck = inputCheck;
        m_Status     = Status.Idle;
    }
Exemplo n.º 3
0
 public KeyAndVoiceLogic(CorePlayInputCheck input)
 {
     m_InputCheck = input;
 }