示例#1
0
    IEnumerator Silhaeng()
    {
        yield return(new WaitForSeconds(sec));

        evt.Run();

        if (MainEvent)
        {
            scGameManager.instance.eventIndex++;
        }

        /*
         * Debug.Log("GameManager의 eventIndex : " + scGameManager.instance.eventIndex);
         * Debug.Log("Runner의 evtidx : " + evtidx);
         */
    }
示例#2
0
    void OnTriggerEnter(Collider coll)    //충돌처리
    {
        Debug.Log("충돌하였음");

        Debug.Log(evtidx);
        Debug.Log(scGameManager.instance.eventIndex);


        if (evtidx == scGameManager.instance.eventIndex)
        {
            evt.Run();

            if (MainEvent)
            {
                scGameManager.instance.eventIndex++;
            }

            Debug.Log("GameManager의 eventIndex : " + scGameManager.instance.eventIndex);
            Debug.Log("Runner의 evtidx : " + evtidx);
        }
    }
示例#3
0
    void OnTriggerEnter(Collider coll)    //충돌처리
    {
        Debug.Log("충돌하였음");

        Debug.Log(evtidx);
        Debug.Log(scGameManager.instance.eventIndex);


        if (evtidx == scGameManager.instance.eventIndex)
        {
            if (!eventRun)
            {
                if (MainEvent)
                {
                    // ePrefab.SendMessage("Run");
                    evt.Run();
                    scGameManager.instance.eventIndex++;
                }

                Debug.Log("GameManager의 eventIndex : " + scGameManager.instance.eventIndex);
                Debug.Log("Runner의 evtidx : " + evtidx);
            }
        }
    }