public void ChangeSprite(GameManager.Action action) { if (action == GameManager.Action.Shoot) { if (GameManager.instance.inHub) { currentSprite.sprite = DisabledShoot; spacebarText.text = "----------"; } else { currentSprite.sprite = Shoot; spacebarText.text = "ESPACIO"; } } else if (action == GameManager.Action.Interact) { currentSprite.sprite = Act; spacebarText.text = "ESPACIO"; } else if (action == GameManager.Action.Talk) { currentSprite.sprite = Talk; spacebarText.text = "ESPACIO"; } }
public void ChangeSprite(GameManager.Action action) { if (action == GameManager.Action.Shoot) { currentSprite.sprite = Shoot; } else if (action == GameManager.Action.Interact) { currentSprite.sprite = Act; } else if (action == GameManager.Action.Talk) { currentSprite.sprite = Talk; } }
void SetAction(GameManager.Action action) { currentAction = action; gameManager.UpdateInput(currentAction, brushMagnitude); }