예제 #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space) && !ui.inDialogue && currentVillager != null)
     {
         targetGroup.m_Targets[1].target = currentVillager.transform;
         ui.SetCharNameAndColor();
         ui.inDialogue = true;
         ui.CameraChange(true);
         ui.ClearText();
         ui.FadeUI(true, .2f, .65f);
         currentVillager.TurnToPlayer(transform.position);
     }
 }