예제 #1
0
        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
            });
        }
예제 #2
0
 public void SetTarget(PhotonPlayer targets)
 {
     Targets = targets;
 }
예제 #3
0
        public Gen7_2(PhotonPlayer target)
        {
            InitializeObject();

            gen7.SetTarget(target);
        }
예제 #4
0
파일: Gen7.cs 프로젝트: yamiM0NSTER/client
 public void SetTarget(PhotonPlayer target)
 {
     Target = target;
 }