Beispiel #1
0
 override protected void Awake()
 {
     base.Awake();
     m_personality     = EnemyPersonality.Cautious;
     m_currentReaction = EnemyReaction.Neutral;
     m_state           = EnemyState.None;
 }
Beispiel #2
0
 private void Awake()
 {
     personallity = GetComponent <EnemyPersonality>();
     grid         = GameManager.gamemanager.GetComponent <Grid>();
     startPos     = transform;
     targetPos    = personallity.target;
 }
Beispiel #3
0
 private void PickPersonality()
 {
     _EP = (EnemyPersonality)(int)Random.Range(0, 3);
     Debug.Log(_EP.ToString());
     _PV = GameDataContainer.Instance.GDC.PersonalityValues.Find(o => o.Name == _EP.ToString());
     if (_PV != null)
     {
         _FireRate = _PV.FireRate;
     }
     else
     {
         Debug.LogWarning("Issue finding personality");
     }
     Invoke("DecideNextMove", 5.0f);
     Invoke("FireProjectile", _FireRate);
 }
Beispiel #4
0
 public void SetPersonality(EnemyPersonality personality)
 {
     m_personality = personality;
     // ChangePersonality stuff
 }
Beispiel #5
0
 protected override void Awake()
 {
     base.Awake();
     m_personality = EnemyPersonality.Cautious;
     m_currentReaction = EnemyReaction.Neutral;
     m_state = EnemyState.None;
 }
Beispiel #6
0
 public void SetPersonality(EnemyPersonality personality)
 {
     m_personality = personality;
     // ChangePersonality stuff
 }