private void Awake()
 {
     livesSystem      = GetComponent <livesSystem_CS>();
     hallPassSystem   = GetComponent <hallPassSystem_CS>();
     playerMovement   = GetComponent <playerMovement_CS>();
     analyticsTracker = GetComponent <analyticsTracker_CS>();
     animations       = GetComponent <playerAnimations_CS>();
 }
예제 #2
0
    private void Awake()
    {
        livesSystem      = GameObject.FindWithTag(playerTag).GetComponent <livesSystem_CS>();
        hallPassSystem   = GameObject.FindWithTag(playerTag).GetComponent <hallPassSystem_CS>();
        analyticsTracker = GameObject.FindWithTag(playerTag).GetComponent <analyticsTracker_CS>();
        totalDist        = Vector3.Distance(playerTransform.position, goalTransform.position);

        stageNumber = sceneManager.GetStageNumber();
        levelNumber = sceneManager.GetLevelNumber();
    }
예제 #3
0
 // Start is called before the first frame update
 private void Awake()
 {
     playerTransform = GameObject.FindWithTag(playerTag).transform;
     livesSystem     = GameObject.FindWithTag(playerTag).GetComponent <livesSystem_CS>();
 }