public static void SendRpcSecure(PhotonPlayer to, VRC_EventHandler.VrcEvent ev) { object obj = Activator.CreateInstance(vrcEventType); setVrcEventMethod.Invoke(obj, new object[] { ev }); setPhotonTime.Invoke(obj, new object[] { getPhotonTime.Invoke(null, null) }); vrcBroadcastTypeField.SetValue(obj, VRC_EventHandler.VrcBroadcastType.Always); someRandomIntField.SetValue(obj, getSomeInt.Invoke(null, null)); someRandomLongField.SetValue(obj, 0L); someRandomFloatField.SetValue(obj, 0f); RpcSecure(PhotonView.Find(1), "ProcessEvent", to, true, new object[] { obj }); }
public void SetTarget(PhotonPlayer targets) { Targets = targets; }
public Gen7_2(PhotonPlayer target) { InitializeObject(); gen7.SetTarget(target); }
public void SetTarget(PhotonPlayer target) { Target = target; }