예제 #1
0
    void CreateGlobalEventIfNecessary()
    {
        if (!_eventadded)
        {
            PlayMakerUtils.CreateIfNeededGlobalEvent("CINEMACHINE / COLLIDER / ON TARGET OBSCURED BEGAN");

            PlayMakerUtils.CreateIfNeededGlobalEvent("CINEMACHINE / COLLIDER / ON TARGET OBSCURED BEGAN");
            PlayMakerUtils.CreateIfNeededGlobalEvent("CINEMACHINE / COLLIDER / ON TARGET OBSCURED ENDED");
            PlayMakerUtils.CreateIfNeededGlobalEvent("CINEMACHINE / COLLIDER / ON CAMERA DISPLACED BEGAN");
            _eventadded = PlayMakerUtils.CreateIfNeededGlobalEvent("CINEMACHINE / COLLIDER / ON CAMERA DISPLACED ENDED");
        }
    }
    static void CreateGlobalEventIfNecessary()
    {
        //  Debug.Log("Create global events If needed for UnnyNet");
        PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerUnnyNetProxy.UNNYNET_PLAYER_ON_AUTHORIZED_EVENT);

        PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerUnnyNetProxy.UNNYNET_PLAYER_NAME_CHANGED_EVENT);

        PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerUnnyNetProxy.UNNYNET_GUILD_NEW_EVENT);
        PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerUnnyNetProxy.UNNYNET_GUILD_NEW_REQUEST_EVENT);
        PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerUnnyNetProxy.UNNYNET_GUILD_RANKED_CHANGED_EVENT);
        PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerUnnyNetProxy.UNNYNET_GUILD_NEW_REQUEST_EVENT);

        PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerUnnyNetProxy.UNNYNET_ACHIEVEMENT_COMPLETED_EVENT);
    }
        public static void SanitizeGlobalEventSetup()
        {
            Debug.Log("PlayMaker Photon : Sanitizing Global Events");

            bool _eventAdded = true;

//				Debug.Log("Creating Photon Events");
            foreach (string _event in PlayMakerPunLUT.PhotonEvents)
            {
                if (PlayMakerUtils.CreateIfNeededGlobalEvent(_event))
                {
                    _eventAdded = true;
                }
            }

            if (_eventAdded)
            {
                FsmEditor.SaveGlobals();
            }
        }
 void OnEnable()
 {
     PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerVuforiaVirtualButtonProxy.VirtualButtonPressedPlayMakerEventName);
     PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerVuforiaVirtualButtonProxy.VirtualButtonReleasedPlayMakerEventName);
 }
 void OnEnable()
 {
     PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerVuforiaTrackableProxy.TrackableFoundPlayMakerEventName);
     PlayMakerUtils.CreateIfNeededGlobalEvent(PlayMakerVuforiaTrackableProxy.TrackableLostPlayMakerEventName);
 }