Esempio n. 1
0
        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;
            }
            }
        }
Esempio n. 2
0
 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);
            }
        }
Esempio n. 4
0
 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);
     }
 }
Esempio n. 7
0
 public override void PlayEvents(m_Trigger sender, object info)
 {
     if (delayTime == 0.0f)
     {
         controlThing.SetActive(EnableOrDisable);
     }
     else
     {
         StartCoroutine(Delay());
     }
 }
Esempio n. 8
0
 public abstract void PlayEvents(m_Trigger sender, object info);
Esempio n. 9
0
 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)
 {
 }