Пример #1
0
 void OnTriggerEnter(Collider col)
 {
     if (col.CompareTag("Player"))
     {
         actionableObject.DoAction();
         Debug.Log("Tripped Enter");
     }
 }
Пример #2
0
 public void Use()
 {
     if (!sendCommandIfActive && actionScript.IsActive())
     {
         return;
     }
     actionScript.DoAction();
     if (pressableButtonAnimation != null)
     {
         pressableButtonAnimation.SetTrigger(buttonAnimationTrigger);
     }
     if (activatedParticles != null)
     {
         activatedParticles.Emit(activatedParticleEmitQuantity);
     }
 }