17 lines
442 B
C#
17 lines
442 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Mirror;
|
|
using UnityEngine;
|
|
|
|
public class HpBullet : Bullet
|
|
{
|
|
[Server]
|
|
public override void OnSpawn(int ownerIndex, Vector3 recoil, float recoilCount,float time)
|
|
{
|
|
base.OnSpawn(ownerIndex, recoil, recoilCount,time);
|
|
type = GunType.HuiFuGun;
|
|
GunInfo bulletInfo = GameManager.Ins.GunInfos[type][1];
|
|
damage = bulletInfo.Damage;
|
|
}
|
|
}
|