Beispiel #1
0
    // public PlayerJsonData PlayerData;

    #endregion

    public void Initialize()
    {
        gameManager         = gameObject.GetComponent <GameManager>();
        stageDataController = gameObject.GetComponent <StageDataController>();
        obstacleController  = gameObject.GetComponent <ObstacleController>();

        //  if(GetComponent<StageDataController>())
    }
 protected override void Init()
 {
     if (!this.isInited)
     {
         Instance = this;
         this.stageDataController         = new StageDataController();
         this.worldDataController         = new WorldDataController();
         this.stageSaveDatas              = new StageSaveDatas();
         this.isInited                    = true;
         this.sceneQueue                  = new Queue <SceneObject>();
         SceneManager.activeSceneChanged += this.OnActiveSceneChanged;
         new ButtonOperation();
     }
 }