public override void PlayEvents(m_Trigger sender, object info) { switch (loadWays) { case LoadWays.Reset: { ResetPlayer(); break; } case LoadWays.NextLevel: { LoadNextLevel(); break; } case LoadWays.GiveLevel: { LoadLevel(GiveLevelIndex); break; } default: { Debug.Log("error"); break; } } }
protected void Send(m_Trigger sender, object info) { if (trigger != null) { trigger(sender, info); } }
public override void PlayEvents(m_Trigger sender, object info) { int len = controller.GetClipCount(); for (int i = 0; i < len; i++) { controller.PlayQueued("AddClip" + i, queueMode, playMode); } }
IEnumerator DelaySend(m_Trigger sender, object info, float delayTime) { while (delayTime > 0) { delayTime -= Time.deltaTime; yield return(null); } Send(sender, info); yield break; }
public override void PlayEvents(m_Trigger sender, object info) { if (ifByClick) { StartCoroutine(changeByClick()); } else { StartCoroutine(changeByTime()); } }
public override void PlayEvents(m_Trigger sender, object info) { if (!ifEnableObject) { mover.readyToMove = true; } else { enableObject.SetActive(enableIt); } }
public override void PlayEvents(m_Trigger sender, object info) { if (delayTime == 0.0f) { controlThing.SetActive(EnableOrDisable); } else { StartCoroutine(Delay()); } }
public abstract void PlayEvents(m_Trigger sender, object info);
protected void Send(m_Trigger sender, object info, float delayTime) { StartCoroutine(DelaySend(sender, info, delayTime)); }
public override void PlayEvents(m_Trigger sender, object info) { changeSource.Stop(); changeSource.clip = changeClip; changeSource.Play(); }
public override void PlayEvents(m_Trigger sender, object info) { timer = 0.0f; StartCoroutine(Spawn()); }
public override void PlayEvents(m_Trigger sender, object info) { }