Exemplo n.º 1
0
 private void Start()
 {
     playerToAssignTotem = FindObjectOfType <AssignTotems>();
     gameManager         = FindObjectOfType <GameManager>();
     CloseLocks();
     FindLocks();
     AssignLocks();
 }
Exemplo n.º 2
0
 public void CheckCorrectKey(AssignTotems player)
 {
     if (player.GetComponentInChildren <Answers>() != null)
     {
         if (answerKey.ToString() == player.GetComponentInChildren <Answers>().myAnswer.ToString())
         {
             totemReceived = true;
             player.GiveTotem(AnswerSpot);
             puzzle.OpenedLock(answerKey.GetHashCode());
         }
         else
         {
             Debug.Log("Mal");
         }
     }
 }