Files
MRCS/Assets/_MrCs/Scripts/Bullets/AtkDummyBullet.cs

17 lines
449 B
C#

using System.Collections;
using System.Collections.Generic;
using Mirror;
using UnityEngine;
public class AtkDummyBullet : Bullet
{
[Server]
public override void OnSpawn(int ownerIndex, Vector3 recoil, float recoilCount,float time)
{
base.OnSpawn(ownerIndex, recoil, recoilCount,time);
type = GunType.GongJiGun;
GunInfo bulletInfo = GameManager.Ins.GunInfos[type][1];
damage = bulletInfo.Damage;
}
}