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