private void Awake() { livesSystem = GetComponent <livesSystem_CS>(); hallPassSystem = GetComponent <hallPassSystem_CS>(); playerMovement = GetComponent <playerMovement_CS>(); analyticsTracker = GetComponent <analyticsTracker_CS>(); animations = GetComponent <playerAnimations_CS>(); }
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(); }
// Start is called before the first frame update private void Awake() { playerTransform = GameObject.FindWithTag(playerTag).transform; livesSystem = GameObject.FindWithTag(playerTag).GetComponent <livesSystem_CS>(); }