Ejemplo n.º 1
0
    //param . mevent means the things to do after time waits
    IEnumerator WaitAndGoto(float waitTime, ButtonEventDelegate mevent)
    {
        yield return(new WaitForSeconds(waitTime));

        Destroy(loadScene);
        mevent();
    }
Ejemplo n.º 2
0
 public void SetEvents(ButtonEventDelegate LeftClick, ButtonEventDelegate RightClick, int Param)
 {
     mLeftClickEvent  = LeftClick;
     mRightClickEvent = RightClick;
     _param           = Param;
 }