コード例 #1
0
    private void Init()
    {
        _instance        = this;
        Fsm              = new FSMSystem();
        MainMenuState    = new MainMenuState();
        PlayState        = new PlayState();
        Model            = new Model();
        AudioManager     = new AudioManager();
        view             = GetComponent <View>();
        cameraController = new CameraController();
        audioSource      = GetComponent <AudioSource>();
        gameOverState    = new GameOverState();

        gameOverState.Init(this);
        MainMenuState.Init(this);
        PlayState.Init(this);
        Model.Init(this);
    }