public void InteractuarInput(InputAction.CallbackContext contexto) { if (contexto.phase == InputActionPhase.Started && actualInteraccion != null) { actualInteraccion.Interactuar(); actualInteraccionGameObject = null; actualInteraccion = null; Canvas.Juego.instancia.mensajeInteraccion.gameObject.SetActive(false); } }
public void InteractuarConObjeto(IInteractuable objeto) { objeto.Interactuar(this); }