Example #1
0
    void OnGUI()
    {
        if (GUILayout.Button("Start TileFadeDemo"))
        {
            ViNoAPI.PlayScenario("TileFadeDemo");
        }

        if (GUILayout.Button("Start BlindDemo"))
        {
            ViNoAPI.PlayScenario("BlindDemo");
        }
    }
Example #2
0
        void jump(Hashtable param)
        {
            string label = param["target"] as string;

            label = label.Replace("*", "");
            if (param.ContainsKey("storage"))
            {
                string storage = param["storage"] as string;
                Debug.Log("Now , Play scenario:" + storage);
                ViNoAPI.PlayScenario(storage);
            }
            Debug.Log("label:" + label);
            VM.Instance.GoToLabel(label);
        }
    void OnGUI()
    {
        if (scenarios != null && scenarios.Length > 0)
        {
//			GUILayout.BeginHorizontal();
            for (int i = 0; i < scenarios.Length; i++)
            {
                if (GUILayout.Button(scenarios[i].name))
                {
                    ViNoAPI.PlayScenario(scenarios[i].name);
                }
            }
//			GUILayout.EndHorizontal();
        }
    }
Example #4
0
    void OnGUI()
    {
        if (isPlaying)
        {
            return;
        }

        // Instantiate Resources/SachiTalks.prefab
        if (GUI.Button(m_Rect1, "SachiTalks"))
        {
            ViNoAPI.PlayScenario("SachiTalks");
            isPlaying = true;
        }

        // Instantiate Resources/YoshinoTalks.prefab
        if (GUI.Button(m_Rect2, "YoshinoTalks"))
        {
            ViNoAPI.PlayScenario("YoshinoTalks");
            isPlaying = true;
        }
    }
Example #5
0
        void OnPlayScenario(Hashtable param)
        {
            string scenarioName = param["name"] as string;

            ViNoAPI.PlayScenario(scenarioName);
        }