Esempio n. 1
0
    //keep object persistent
    void Start()
    {
        DontDestroyOnLoad(this.gameObject);

        SongProgressionManagerObj = GameObject.Find("SongProgressionManager");
        SongProgressionScript     = SongProgressionManagerObj.GetComponent <SongProgressionManagerScript>();

        SaveDataObj    = GameObject.Find("SaveData");
        SaveDataScript = SaveDataObj.GetComponent <SaveDataScript>();

        CurrencyCanvas       = GameObject.Find("CurrencyCanvas");
        CurrencyCanvasScript = CurrencyCanvas.GetComponent <PlayerCashTextScript>();
    }
    //keep object persistent
    void Start()
    {
        DontDestroyOnLoad( this.gameObject );

        SongProgressionManagerObj = GameObject.Find( "SongProgressionManager" );
        SongProgressionScript = SongProgressionManagerObj.GetComponent<SongProgressionManagerScript>();

        SaveDataObj = GameObject.Find( "SaveData" );
        SaveDataScript = SaveDataObj.GetComponent<SaveDataScript>();

        CurrencyCanvas = GameObject.Find( "CurrencyCanvas" );
        CurrencyCanvasScript = CurrencyCanvas.GetComponent<PlayerCashTextScript>();
    }