FadeManager.FadeOut C# (CSharp) Method

FadeOut() public method

public FadeOut ( ) : void
return void
    public void FadeOut()
    {
        posFadex = posxfinal;
        fs = FadeState.FADEOUT;
    }

Usage Example

 // Update is called once per frame
 void Update()
 {
     //選択が終了していたら
     if (select.selected)
     {
         //Exitが選択されたら
         if (select.selected_exit)
         {
             //タイトルに戻る
             fmana.FadeOut("Title");
         }
         //プレイヤーが選択されたら
         else
         {
             //メインゲームに戻る
             fmana.FadeOut("MainGame");
         }
     }
     //一定時間選択されなかったら
     else if (timer > autoTitleLoadTime)
     {
         //タイトルに戻る
         fmana.FadeOut("Title");
     }
     timer += Time.deltaTime;
 }
All Usage Examples Of FadeManager::FadeOut