예제 #1
0
    private void InitializeRefrences()
    {
        playerObjectInScene = GameObject.FindGameObjectWithTag("Player");
        playerTransform     = playerObjectInScene.GetComponent <Transform> ();

        myPlayerPrefsInteractor = GetComponent <PlayerPrefsInteractions> ();
        checkpointToLoadInto    = myPlayerPrefsInteractor.GetCheckpointCounter();
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     myPlayerPrefsInteractor = GameObject.FindGameObjectWithTag("PlayerPrefsInteractor");
     if (myPlayerPrefsInteractor != null)
     {
         myPlayerPrefsScript = myPlayerPrefsInteractor.GetComponent <PlayerPrefsInteractions> ();
     }
 }
예제 #3
0
    // Use this for initialization
    void Start()
    {
        myCollectedAbilities = GetComponent <CollectedAbilities> ();
        myEnabledAbilities   = GetComponent <EnabledAbilities> ();

        myPlayerPrefsInteractor = GameObject.FindGameObjectWithTag("PlayerPrefsInteractor");
        if (myPlayerPrefsInteractor != null)
        {
            myPlayerPrefsScript = myPlayerPrefsInteractor.GetComponent <PlayerPrefsInteractions> ();
        }
    }