Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Light") && !other.isTrigger)
     {
         player2Passed = true;
     }
     if (other.CompareTag("Dark") && !other.isTrigger)
     {
         player1Passed = true;
     }
     if (player1Passed && player2Passed)
     {
         cM.MoveCamera();
         gameObject.SetActive(false);
     }
 }
 private void Setup()
 {
     m_MapReaderMono.Displacement = m_TileDisplacement;
     m_MapReaderMono.Origin       = m_Origin;
     m_CameraMove.MoveCamera(m_Origin);
 }