public static void Check()
 {
     main.numIntect = main.GetNumIntect();
     main.uiElectricBall.Show(main.numIntect, main.numAll);
     if (main.numIntect == main.numAll)
     {
         UIEcho.AddDialogues(main.strDialogues);
         if (main.objPortal != null)
         {
             main.objPortal.SetActive(true);
         }
     }
 }
    private void OnEnter(Collider collider)
    {
        //Debug.Log("Dialogue:OnEnter");
        if (!isWork)
        {
            return;
        }

        if (collider.CompareTag(strTag))
        {
            //Debug.Log("检测到玩家进入对话区域");
            UIEcho.AddDialogues(strDialogue);
            if (isForOnce)
            {
                isWork = false;
            }
        }
    }
示例#3
0
 void Start()
 {
     Debug.Log("Teach02.Start");
     UIEcho.AddDialogues(strDialogues);
 }
示例#4
0
 void Awake()
 {
     UIEcho.main = this;
     Init();
 }
示例#5
0
 void Start()
 {
     GameInfo.levelNow = levelNow;
     UIEcho.AddDialogues(strWelcomes);
 }