예제 #1
0
    void RestartGame(float eyeCloseTime, float delay, float afterEyeCloseDelay)
    {
        // TODO: Clean this up
        Eye e = Camera.main.gameObject.GetComponent <Eye>();

        e.EyeClose(eyeCloseTime, true, () =>
        {
            SceneManager.LoadScene(SceneManager.GetActiveScene().name);
        }, delay, afterEyeCloseDelay);
    }