Search Results for

    Show / Hide Table of Contents

    AppMain

    シングルトンインスタンスで、各マネージャーへの参照経路を受け持ちます。

    namespace GarageKit
    public class AppMain : MonoBehaviour
    

    Inheritance

    AppMain -> MonoBehaviour

    Inspector

    Properties

    member type description
    asDontDestroyOnLoad bool 複数シーンで利用する場合に、シーン移動時に破棄されずにシーン間で共有される

    Static Methods

    シングルトンインスタンスの取得

    public static AppMain Instance { get; }
    

    Example

    // 各マネージャーへのルーティング
    AppMain.Instance.sceneStateManager.ChangeState("PLAY");
    AppMain.Instance.soundManager.Play("SE", "CLICK");
    
    • Edit this page
    In this article
    Back to top Generated by DocFX