private void Awake()
 {
     livesSystem      = GetComponent <livesSystem_CS>();
     hallPassSystem   = GetComponent <hallPassSystem_CS>();
     playerMovement   = GetComponent <playerMovement_CS>();
     analyticsTracker = GetComponent <analyticsTracker_CS>();
     animations       = GetComponent <playerAnimations_CS>();
 }
Exemplo n.º 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();
    }