Ejemplo n.º 1
0
    public void SetHint(bool auto)
    {
        Setup();

        key_word *= action.ToString();
        key_word += 0;
        string text = ScriptManager.Instance.GetLine(key_word);

        information.text = text;

        Sprite buf = Resources.Load <Sprite>("Keys/Keyboard/" + action.ToString());

        key.sprite = buf;


        if (auto)
        {
            Enable();
            onAction.Setup(action);
            onAction.OnKeyDown.AddListener(Disable);
        }
    }