示例#1
0
    //Where you will execute your command!
    private void ExecuteCommand(SpecialCommand command, TMP_Text teshMeshPro)
    {
        if (command == null)
        {
            return;
        }

        Debug.Log(LogUtility.MakeLogStringFormat("GUIDialogue", "Command " + command.Name + " found!"));

        if (command.Name == "sound")
        {
            Debug.Log("BOOOOM! Command played a sound.");
        }
        else if (command.Name == "color")
        {
            if (command.Values[0] != "end")
            {
                c1           = new Color32(255, 0, 0, 255);
                isColorizing = true;
            }
            else
            {
                isColorizing = false;
            }
        }
        else if (command.Name == "action")
        {
            if (command.Values[0] == "continue")
            {
                CurrentTimelineManager.PlayNextTimeline();
            }
            else if (command.Values[0] == "end")
            {
                CurrentTimelineManager.isTheLastDialogue = true;
            }
        }
    }
示例#2
0
    public void AfterDeflectTutorial()
    {
        CameraManager.Instance.Idle();
        PlayerCharacter.Singleton.SpriteHolder.GetComponent <GhostSprites>().Occupied = false;
        timelineManager_DeflectTutorial.PlayNextTimeline();
        TimeManager.Instance.endSlowMotion(0f);

        if (MouseIndicator.Singleton.CurrentInputType == InputType.Joystick)
        {
            UI_AttackKey_Joy.SetActive(false);
        }
        else
        {
            UI_AttackKey_Keyboard.SetActive(false);
        }

        PlayerCharacter.Singleton.transform.parent.GetComponentInChildren <MouseIndicator>().ResetColor();
    }