public override void Awake()
 {
     statCollection         = Owner.GetComponent <RPGStatCollection> ();
     faceDirectionComponent = Owner.GetComponent <FaceDirectionComponent> ();
     platformController     = Owner.GetComponent <Monster> ();
     blackboard             = Owner.GetComponent <Blackboard> ();
 }
    public override void Awake()
    {
        eventHandler           = Owner.transform.Find("ActionAnimator").GetComponent <MonsterAnimationEventHandler> ();
        faceDirectionComponent = Owner.GetComponent <FaceDirectionComponent> ();

        _damageDealer = DamageDealer.NewEnemy();
        _damageDealer.SetDamageFlags(true, false, true);
        _damageDealer.SetDirection(DamageDirection.Neutral, Owner.transform);
        _damageDealer.ignoreReceiverOnDealDamage = false;
        _damageDealer.attackType = AttackType.Hit;
        // _damageDealer.damage     = LevelMonsterStrengthManager.Instance.GetDamage ( Owner.name, DamageKey );
    }
 public override void Awake()
 {
     eventHandler           = Owner.transform.Find("ActionAnimator").GetComponent <MonsterAnimationEventHandler> ();
     faceDirectionComponent = Owner.GetComponent <FaceDirectionComponent> ();
 }
Beispiel #4
0
 public override void Awake()
 {
     faceDirectionComponent = Owner.GetComponent <FaceDirectionComponent> ();
     controller             = Owner.GetComponent <Enemy.Monster> ();
 }