示例#1
0
文件: Enemy.cs 项目: washynator/MooD
    protected virtual void Attack(float _damage)
    {
        print("Attacking... and doing " + _damage + " points of damage");
        damageEventData = new DamageEventData(EventSystem.current);
        damageEventData.Initialize(_damage);

        player.OnDamage(damageEventData);
    }
示例#2
0
文件: Weapon.cs 项目: washynator/MooD
    private void Shoot()
    {
        damageEventData.Initialize(damage);

        HandleShooting();
    }