示例#1
0
 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>();
     }
 }
示例#2
0
 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>();
 }
示例#6
0
    void Awake()
    {
        _playerMovement = GetComponent<PlayerMovement>();
        _enemyHealth.GetComponent<EnemyHealth>();
        _battleMechanics = GetComponent<BattleMechanics>();
        _spiritBar = GetComponent<SpiritBar>();
        CurrentHealth = MaxHealth;
        IsDead = false;
        CanSpecial = false;

        Source = GetComponent<AudioSource>();
    }
示例#7
0
    void Awake()
    {
        _playerMovement = GetComponent <PlayerMovement>();
        _enemyHealth.GetComponent <EnemyHealth>();
        _battleMechanics = GetComponent <BattleMechanics>();
        _spiritBar       = GetComponent <SpiritBar>();
        CurrentHealth    = MaxHealth;
        IsDead           = false;
        CanSpecial       = false;

        Source = GetComponent <AudioSource>();
    }