protected void OnActionPressed() { if (InteractionModel == null) { return; } InteractionModel.OnInteract(); }
protected void OnInteractPressed(bool isHoldDown) { if (m_InteractionModel == null) { return; } m_InteractionModel.OnInteract(isHoldDown); }
//When a player interacts with a sign or chest etc. protected void OnActionPressed() { //Make sure the system is init if (m_InteractionModel == null) { return; } m_InteractionModel.OnInteract(); //Do the interaction }
//when player press interaction key void OnActionPressed() { if (IsCarrying()) { DropObject(); return; } if (InteractionModel != null) { InteractionModel.OnInteract(); } }
protected void OnActionPressed() { /* * aquí incrementem el numero de vegades que s'ha apretat espai * * quantesVegadesEspai = quantesVegadesEspai + 1; * Debug.Log("quantes vegades s'ha apretat l'espai: "+quantesVegadesEspai); */ if (null == characterInteractionModel) { return; } characterInteractionModel.OnInteract(); }