changes?
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
using UnityEngine;
|
||||
using FishNet.Object;
|
||||
using FishNet;
|
||||
|
||||
namespace Item
|
||||
{
|
||||
public class BulletComponent : MonoBehaviour
|
||||
public class BulletComponent : NetworkBehaviour
|
||||
{
|
||||
[SerializeField] private float duration = 5f;
|
||||
|
||||
@ -22,6 +24,8 @@ namespace Item
|
||||
{
|
||||
register = Item.FlareRegister.instance;
|
||||
register.bullets.Add(this);
|
||||
this.transform.parent = null;
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
@ -134,6 +134,7 @@ namespace Item
|
||||
[ServerRpc]
|
||||
public void Fire(bool offsetWithTargetBall)
|
||||
{
|
||||
|
||||
shootLightDuration = 0;
|
||||
shootLight.gameObject.SetActive(true);
|
||||
|
||||
|
Reference in New Issue
Block a user