private void ReassignScripts() { if (spiritBar == null) { spiritBar = GetComponent <SpiritBar>(); } if (soundManager == null) { soundManager = GetComponent <SoundManager>(); } if (inputManager == null) { inputManager = GetComponent <InputManager>(); } if (guiManager == null) { guiManager = GetComponent <GUIManager>(); } if (guiManager == null) { guiManager = GetComponent <GUIManager>(); } if (mainCamera == null) { mainCamera = GameObject.FindWithTag("MainCamera").GetComponent <MainCamera>(); } }
void Awake() { _enemyHealth = GetComponent <EnemyHealth>(); _spiritBar = GetComponent <SpiritBar>(); //_arenaManager.GetComponent<ArenaManager>(); _EnemyAttackAnimation.GetComponent <EnemyAttackAnimation>(); _DefendAnimation.GetComponent <DefendAnimation>(); }
void Awake() { Source = GetComponent<AudioSource>(); _playerHealth = GetComponent<PlayerHealth>(); _spiritBar = GetComponent<SpiritBar>(); _AttackAnimation.GetComponent<AttackAnimation>(); _DefendAnimation.GetComponent<DefendAnimation>(); }
void Awake() { _enemyHealth = GetComponent<EnemyHealth>(); _spiritBar = GetComponent<SpiritBar>(); //_arenaManager.GetComponent<ArenaManager>(); _EnemyAttackAnimation.GetComponent<EnemyAttackAnimation>(); _DefendAnimation.GetComponent<DefendAnimation>(); }
void Awake() { Source = GetComponent <AudioSource>(); _playerHealth = GetComponent <PlayerHealth>(); _spiritBar = GetComponent <SpiritBar>(); _AttackAnimation.GetComponent <AttackAnimation>(); _DefendAnimation.GetComponent <DefendAnimation>(); }
void Awake() { _playerMovement = GetComponent<PlayerMovement>(); _enemyHealth.GetComponent<EnemyHealth>(); _battleMechanics = GetComponent<BattleMechanics>(); _spiritBar = GetComponent<SpiritBar>(); CurrentHealth = MaxHealth; IsDead = false; CanSpecial = false; Source = GetComponent<AudioSource>(); }
void Awake() { _playerMovement = GetComponent <PlayerMovement>(); _enemyHealth.GetComponent <EnemyHealth>(); _battleMechanics = GetComponent <BattleMechanics>(); _spiritBar = GetComponent <SpiritBar>(); CurrentHealth = MaxHealth; IsDead = false; CanSpecial = false; Source = GetComponent <AudioSource>(); }