Example #1
0
    public IEnumerator WingEvent()
    {
        //eventsController.DropBigCoin();

        switch (Random.Range(1, 5))
        {
        case 1:
            eventsController.DropBigCoin();
            break;

        case 2:
            eventsController.BorderEvent();
            break;

        case 3:
            StartCoroutine(eventsController.ShakeEvent());
            break;

        case 4:
            EventsController.Instance.TongueEvent();
            break;
        }

        yield return(new WaitForSeconds(1f));
    }