Exemple #1
0
    protected override void Awake()
    {
        base.Awake();


        rb2d = GetComponent <Rigidbody2D>();


        OnHit.AddListener(HandleHit);


        anger = 0;
    }
Exemple #2
0
 private void Awake()
 {
     damage = baseDamage;
     OnHit.AddListener(OnHitboxEntered);
 }