예제 #1
0
 private void Update()
 {
     if ((GetComponent <Renderer>() != null && GetComponent <Renderer>().enabled) || (GetComponent <Canvas>() != null && GetComponent <Canvas>().enabled))
     {
         if (!universalARTrigger && targetMessage != null && MessageManager.currentMessage.message.mail != targetMessage)
         {
             return;
         }
         if (MessageManager.currentMessage == null || MessageManager.currentMessage.isCompleted)
         {
             return;
         }
         Debug.Log("CORRECT AR PUZZLE");
         MessageManager.currentMessage.isCompleted = true;
         PuzzleManager.numberCompleted++;
         MessageNotification.NewMessage();
     }
 }
예제 #2
0
 void NewMessage()
 {
     MessageNotification.NewMessage();
 }