예제 #1
0
 public void onEventMethod()
 {
     if (keyState)
     {
         if (!keyFlag)
         {
             if (!fireFlag)
             {
                 //GET KEY
                 statusText.ShowStatusText("키를 획득하였습니다.");
                 statusTextRight.ShowStatusText("키를 획득하였습니다.");
                 gameManager.keyFlag = true;
                 GameObject.Find("pPlane3").GetComponent <MeshRenderer>().enabled = true;
             }
             else
             {
                 statusText.ShowStatusText("너무 뜨겁습니다.");
                 statusTextRight.ShowStatusText("너무 뜨겁습니다.");
             }
         }
     }
     else
     {
         statusText.ShowStatusText("아무런일도 일어나지 않았습니다.");
         statusTextRight.ShowStatusText("아무런일도 일어나지 않았습니다.");
     }
 }
예제 #2
0
 public void onEventMethod()
 {
     if (barrelFlag)
     {
         statusText.ShowStatusText("항아리에 불을 끌 수 있을 것 같다.");
         statusTextRight.ShowStatusText("항아리에 불을 끌 수 있을 것 같다.");
     }
     else
     {
         statusText.ShowStatusText("아직 물통은 필요 없다.");
         statusTextRight.ShowStatusText("아직 물통은 필요 없다.");
     }
 }
예제 #3
0
 public void onEventMethod()
 {
     if (!markerPicture)
     {
         statusText.ShowStatusText(pictureMessage);
     }
     else
     {
         statusText.ShowStatusText("수상한 쪽지를 발견했다. 읽어본다.");
         statusTextRight.ShowStatusText("수상한 쪽지를 발견했다. 읽어본다.");
         paperText.showMessage(true, new string[] { pictureMessage });
     }
 }
예제 #4
0
 public void onEventMethod()
 {
     if (_targetObject != null)
     {
         _targetObject.transform.FindChild("default").GetComponent <ITrickManager>().onTargetTrigger();
         statusText.ShowStatusText("베게 밑에 이상한 버튼이 있다.");
         statusTextRight.ShowStatusText("베게 밑에 이상한 버튼이 있다.");
     }
     else
     {
         statusText.ShowStatusText("아무런일도 일어나지 않았다.");
         statusTextRight.ShowStatusText("아무런일도 일어나지 않았다.");
     }
 }
예제 #5
0
 void Update()
 {
     Debug.Log(string.Format("keyflag: {0} // opendoor: {1} // grab: {2}", gameManager.keyFlag, openedDoor, _grabFlag));
     if (gameManager.keyFlag && openedDoor && _grabFlag)
     {
         if (Mathf.Abs(grabAngle.x - gameManager.myoBaseObject.transform.eulerAngles.x) > 90.0f)
         {
             doorObject.GetComponent <Animation>().Play();
             statusText.ShowStatusText("탈출 성공!");
             statusTextRight.ShowStatusText("탈출 성공!");
             GameObject.Find("OutsideLight").GetComponent <Light>().intensity = 8.0f;
             openedDoor = false;
         }
     }
 }
예제 #6
0
 public void onEventMethod()
 {
     gameManager.NightVisionFlag = false;
     gameObject.SetActive(false);
     statusText.ShowStatusText("야간투시경을 제거하였습니다.");
     statusTextRight.ShowStatusText("야간투시경을 제거하였습니다.");
 }