コード例 #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);
         }
     }
 }