예제 #1
0
 public void Entro()
 {
     if (PjActual.IdPlayer == 0)
     {
         Contr1.Activar(this);
     }
     else
     {
         Contr2.Activar(this);
     }
 }
예제 #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (HasBags())
     {
         if (other.gameObject.CompareTag("Deposito"))
         {
             Deposito2 dep = GetComponent <Deposito2>();
             cd.Activar(dep);
         }
     }
 }