コード例 #1
0
 protected override void Update()
 {
     if (FlaiInput.IsNewKeyPress(this.LoadFirstSceneKey))
     {
         SceneFader.Fade(SceneDescription.FromIndex(0), Fade.Create(0.75f), Fade.Create(0.75f));
     }
     else if (FlaiInput.IsNewKeyPress(this.ReloadSceneKey))
     {
         SceneFader.Fade(SceneDescription.FromIndex(Application.loadedLevel), Fade.Create(0.15f), Fade.Create(0.15f));
     }
     else if (FlaiInput.IsNewKeyPress(this.PreviousSceneKey))
     {
         SceneFader.Fade(SceneDescription.FromIndex(Application.loadedLevel - 1), Fade.Create(0.15f), Fade.Create(0.15f));
     }
     else if (FlaiInput.IsNewKeyPress(this.NextSceneKey))
     {
         SceneFader.Fade(SceneDescription.FromIndex((Application.loadedLevel == Application.levelCount - 1) ? 0 : Application.loadedLevel + 1), Fade.Create(0.15f), Fade.Create(0.15f));
     }
 }
コード例 #2
0
    void fade_init()
    {
        var go = Fade.Create();

        go.transform.parent = StaticObj.V.baseRoot.transform;
    }