Пример #1
0
    public void SetDataFromImages(ModelEnumerators.TargetActionType type, ImagesEventHandler imagesHandler)
    {
        CurrentTargetType = type;
        //ModelSelectorComponent.TargetType = type;

        ImagesTargetObject = imagesHandler;
    }
Пример #2
0
    public void SetTypeTargetForModel(ModelEnumerators.TargetActionType type, ModelAppearingEventHandler modelHandler)
    {
        CurrentTargetType = type;
        //ModelSelectorComponent.TargetType = type;

        currentTargetObject = modelHandler;
    }
Пример #3
0
 public static void OnDetailTapEvent(ModelEnumerators.TargetActionType detailType)
 {
     DetailTapEvent handler = OnDetailTap;
     if (handler != null)
     {
         handler(detailType);
     }
 }
Пример #4
0
 public void ShowNo3DAction(ModelEnumerators.TargetActionType curTypeOfTarget)
 {
     switch (curTypeOfTarget)
     {
     case ModelEnumerators.TargetActionType.V:
     case ModelEnumerators.TargetActionType.Z:
         StartCoroutine(OpenCloseTwoVideo());
         StartCoroutine(OpenGame());
         break;
     }
 }
Пример #5
0
    private void DoSomething(ModelEnumerators.TargetActionType _hostspot)
    {
        switch (_hostspot)
        {
        case ModelEnumerators.TargetActionType.R:
            ActionsForTypeR();
            break;

        case ModelEnumerators.TargetActionType.VuMark:
            ActionsForTypeVuMark();
            break;
        }
    }
Пример #6
0
    private void ActivateDeactivateSwipe(ModelEnumerators.TargetActionType curTypeOfTarget)
    {
        switch (curTypeOfTarget)
        {
        case ModelEnumerators.TargetActionType.K:
        case ModelEnumerators.TargetActionType.R:
        case ModelEnumerators.TargetActionType.VuMark:
            MainModel.GetComponent <SwipeModel>().enabled = true;
            break;

        case ModelEnumerators.TargetActionType.W:
        case ModelEnumerators.TargetActionType.Q:
            MainModel.GetComponent <SwipeModel>().enabled = false;
            break;
        }
    }
Пример #7
0
    private void ActionAfterAnimationEnd(ModelEnumerators.TargetActionType curTypeOfTarget)
    {
        switch (curTypeOfTarget)
        {
        case ModelEnumerators.TargetActionType.Q:
            if (!RecognizeColorComponent.IsTryAgainAvailable && !RecognizeColorComponent.IsSuccessfull)
            {
                //if (!string.IsNullOrEmpty(DataTargetManager.Instance.CurrentGameLink2))
                if (!string.IsNullOrEmpty(DataTargetManager.Instance.CurrentGameLink1))
                {
                    TwoGamesTarget = true;
                    _gameCoroutine = OpenGame();
                    StartCoroutine(_gameCoroutine);
                }
                else
                {
                    StartCoroutine(OpenCloseTwoVideo());
                }
                StartCoroutine(WaitForTurnOnOffRecognizeFunctionality());
            }
            else if (RecognizeColorComponent.IsTryAgainAvailable && !RecognizeColorComponent.IsSuccessfull)
            {
                HideAllObjects();
                RecognizeButton.SetActive(true);
                DataTargetManager.Instance.IsCanScanTarget = true;
                print(DataTargetManager.Instance.IsCanScanTarget);
            }
            else if (!RecognizeColorComponent.IsTryAgainAvailable && RecognizeColorComponent.IsSuccessfull)
            {
#if !UNITY_EDITOR
                if (!string.IsNullOrEmpty(DataTargetManager.Instance.CurrentGameLink2))
                {
                    Debug.LogWarning("Open");
                    OpenGameComponent.OpenExternalGame(DataTargetManager.Instance.CurrentGameLink2);
                }
#endif
                DeactivateRecognizeFunctional(false);
            }
            break;

        case ModelEnumerators.TargetActionType.W:
            StartCoroutine(OpenCloseTwoVideo());
            StartCoroutine(OpenGame());
            break;
        }
    }
Пример #8
0
 public void SetDataFromVuMark(ModelEnumerators.TargetActionType type, VuMarkEventHandler vuMarkHandler)
 {
     CurrentTargetType = type;
     //ModelSelectorComponent.TargetType = type;
     VuMarkTargetObject = vuMarkHandler;
 }