コード例 #1
0
    //List<string> testVoiceStr = new List<string>();
    // int testNum = 0;
    // TipsInfoManager tipsTestInfo = new TipsInfoManager();

    void Awake()
    {
        gameObject.AddComponent <doVoiceExe>();
        st_Voice = gameObject.GetComponent <doVoiceExe>();
        gameObject.AddComponent <TipsWindow>();
        st_Tips = gameObject.GetComponent <TipsWindow>();
    }
コード例 #2
0
ファイル: Helps.cs プロジェクト: swiftliang/NewGame
    public static void ShowTipsWindow(string strTip)
    {
        TipsWindow tw = LoadPrefab <TipsWindow>("/ui/tipsWindows");

        tw.SetTip(strTip);
        tw.startDestroy(3);
    }
コード例 #3
0
	//List<string> testVoiceStr = new List<string>();
	// int testNum = 0;
	// TipsInfoManager tipsTestInfo = new TipsInfoManager();

	void Awake ()
	{
		gameObject.AddComponent<doVoiceExe>();
		st_Voice = gameObject.GetComponent<doVoiceExe>();
		gameObject.AddComponent<TipsWindow>();
		st_Tips = gameObject.GetComponent<TipsWindow>();

	}
コード例 #4
0
 public void empty()
 {
     FILEPATH     = Application.dataPath + "\\StreamingAssets\\Programs\\";
     GSKFile      = new ROBOTFILE(FILEPATH);
     button       = GameObject.Find("MyButton").GetComponent <ButtonRespond>();
     ScreenScript = GameObject.Find("MyScreen").GetComponent <ScreenBuild>();
     MotionScript = GameObject.Find("MyMotion").GetComponent <RobotMotion>();
     TipsShow     = GameObject.Find("MainScript").GetComponent <TipsWindow>();
     Voice        = GameObject.Find("MainScript").GetComponent <doVoiceExe>();
     TipsMo       = new TipsMotion();
     TipsManager  = new TipsInfoManager();
 }
コード例 #5
0
        private void ShowTipsIfEnabled()
        {
            var optionsSetup = _mainGraph[InputNames.OptionsSetupInput].Get <OptionsSetup>();

            if (!optionsSetup.UpdateSectionNode(OptionSectionNames.WelcomePageTitle).GetBoolValue(0))
            {
                return;
            }
            _tipsWindow = new TipsWindow(_mainGraph);
            _tipsWindow.Show();
            _tipsWindow.Topmost = true;
            _tipsWindow.Focus();
        }
コード例 #6
0
    public void Initial(string casename, string filename)
    {
        ObjectInitial();
        StageTotal    = 0;
        stage_current = 0;
        DetectNo      = 0;
        caseName      = casename;
        FileName      = filename;
        TipsShow      = GameObject.Find("MainScript").GetComponent <TipsWindow>();
        Voice         = GameObject.Find("MainScript").GetComponent <doVoiceExe>();
        TipsMo        = new TipsMotion();
        TipsManager   = new TipsInfoManager();
        button        = GameObject.Find("MyButton").GetComponent <ButtonRespond>();
        FILEPATH      = Application.dataPath + "\\StreamingAssets\\Programs\\";
        GSKFile       = new ROBOTFILE(FILEPATH);
        ScreenScript  = GameObject.Find("MyScreen").GetComponent <ScreenBuild>();
        MotionScript  = GameObject.Find("MyMotion").GetComponent <RobotMotion>();

        CalculateTotalStage();
        CaseIntro.SetActive(true);
        CaseIntro.CaseStart(casename);
        PanelInitial();//面板初始化
    }
コード例 #7
0
    //显示提示窗体
    public void ShowTips(string text, Action enterBtnAction = null, Action closeBtnAction = null)
    {
        TipsWindow tipsWindow = (TipsWindow)Instance.OpenWindow(WindowType.TipsWindow);

        tipsWindow.ShowTips(text, enterBtnAction, closeBtnAction);
    }