Beispiel #1
0
    private void Awake()
    {
        //TODO: Redo
        ISceneDecoratorConfig c = new SceneDecoratorConfig();
        int number = Random.Range(0, 4);
        c.SetTextureLoadPath(backgroundTexturePath + backgroundTextureName + number);
        c.SetNameBackground("Background");
        sceneDecorator = new SceneDecorator(c);
        sceneDecorator.Decorate();//TODO: Redo

        Instance = this;
        PlayerDataManager = GetComponent<RootPlayerDataManager>();
        Adapter = SaveLoadManager.FilledAdapter; // Load and fill adapter from savegame data
        RecalculateAll(Adapter); // recalculating all variables to be up-to-date
        UpdatePlayerStatus(); // Updates player status
    }
 void Awake()
 {
     Instance = this;
 }