Exemplo n.º 1
0
    public void On3DAction()
    {
        WKStaticFunction.WKMessageLog("Close3D");
        ARModal arModal = ARModal.Instance();

        arModal.OnClose3D();
    }
        void OnTargetLost(ImageTargetBaseBehaviour behaviour)
        {
            ARModal arModal = ARModal.Instance();

            WKStaticFunction.WKMessageLog("Lost " + arModal.GetNameObjectFound + " : " + Target.Id);
            HideObjects(transform);
        }
Exemplo n.º 3
0
    public void PlayVideoAction()
    {
        WKStaticFunction.WKMessageLog("Play Video");

        AppRuntime appRuntime = _FSMCaller as AppRuntime;

        appRuntime.SetTransition(TRANSITION.TRANSITION_TO_VIDEOTUTORIALSTATE);
    }
Exemplo n.º 4
0
    private void StartAction()
    {
        WKStaticFunction.WKMessageLog("Start on Click");

        AppRuntime appRuntime = _FSMCaller as AppRuntime;

        appRuntime.SetTransition(TRANSITION.TRANSITION_TO_ARSTATE);
    }
    public override void OnLeave()
    {
        WKStaticFunction.WKMessageLog("Leave ARState");

        VideoTutorialModal videoModal = VideoTutorialModal.Instance();

        videoModal.CloseModal();

        base.OnLeave();
    }
    public override void OnEnter()
    {
        WKStaticFunction.WKMessageLog("Enter VideoState");
        VideoTutorialModal videoModal = VideoTutorialModal.Instance();

        videoModal.OpenModal();


        base.OnEnter();
    }
Exemplo n.º 7
0
    public override void OnEnter()
    {
        WKStaticFunction.WKMessageLog("Enter ARState");
        ARModal arModal = ARModal.Instance();

        arModal.OpenModal();
        arModal.OnRegisterModal(PlayVideoAction, On3DAction);

        base.OnEnter();
    }
Exemplo n.º 8
0
    public override void OnLeave()
    {
        WKStaticFunction.WKMessageLog("Leave ARState");

        HomeModal homeModal = HomeModal.Instance();

        homeModal.CloseModal();

        base.OnLeave();
    }
Exemplo n.º 9
0
    public override void OnLeave()
    {
        WKStaticFunction.WKMessageLog("Leave ARState");

        ARModal arModal = ARModal.Instance();

        arModal.UnRegisterModal();
        arModal.CloseModal();

        base.OnLeave();
    }
Exemplo n.º 10
0
    public override void OnEnter()
    {
        WKStaticFunction.WKMessageLog("Enter HomeState");
        CreatePlayerModal createPlayer = CreatePlayerModal.Instance();

        createPlayer.OpenModal();
        //HomeModal homeModal = HomeModal.Instance();
        //homeModal.OpenModal();
        //homeModal.OnRegisterModal(StartAction);

        base.OnEnter();
    }
Exemplo n.º 11
0
    public void DeleteTransition(TRANSITION transition)
    {
        if (transition == TRANSITION.NullTransition)
        {
            WKStaticFunction.WKMessageError("The Transition is null, or not fully initialized");
            return;
        }

        if (_Map.ContainsKey(transition))
        {
            _Map.Remove(transition);
            return;
        }

        WKStaticFunction.WKMessageLog("The Transition is not on the transition _Map");
    }
Exemplo n.º 12
0
 private void JSONAction(string jsonString)
 {
     Debug.Log("asyjdhfguoyasdvfyuavsfajhsdvftauyvsdftgasdfbabwfyuasdbfhjbsdbbbbbbbb");
     WKStaticFunction.WKMessageLog(jsonString);
 }