void Start() { _actorStatsController = GameObject.Find("Player").GetComponent <ActorStatsController>(); _xpBar = GameObject.FindGameObjectWithTag("XP Bar Slider").GetComponent <Slider>(); _lvlDisplay = GameObject.Find("Level Display").GetComponent <TextMeshProUGUI>(); _lvlDisplay.SetText($"Level {_actorStatsController.actorLevel}"); }
void Start() { _healthBarController = GameObject.Find("HP Bar").GetComponent <HealthBarController>(); _currentActorAnimator = GetComponent <Animator>(); _isAliveComponent = GetComponent <IsAliveComponent>(); _currentTransform = GetComponent <Transform>(); _playerStatsController = GetComponent <ActorStatsController>(); }
void Start() { _isAliveComponent = GetComponent <IsAliveComponent>(); _enemyCombatAnimator = GetComponent <Animator>(); _actorStatsController = GetComponent <ActorStatsController>(); }
void Start() { _playerCombatAnimator = GetComponent <Animator>(); _IsAliveComponent = GetComponent <IsAliveComponent>(); _actorStatsController = GetComponent <ActorStatsController>(); }