Ejemplo n.º 1
0
    public void DeactivateActionButton()
    {
        this._type = this._actionScript.GetIconType();
        switch (this._type)
        {
        case SetActionIcon.IconType.CAPE:
            this.DeactivateCape();
            break;

        case SetActionIcon.IconType.DRINK_WATER:
            this.DeactivateDrinkWater();
            break;

        case SetActionIcon.IconType.INVESTIGATE:
            this.DeactivateInvestigate();
            break;

        case SetActionIcon.IconType.UNINITIALIZED:
            this.DeactivateAll();
            break;

        default:
            break;
        }
    }
Ejemplo n.º 2
0
    public void ActivateActionButton()
    {
        this._type = this._actionScript.GetIconType();
        switch (this._type)
        {
        case SetActionIcon.IconType.CAPE:
            Debug.Log("Cape Clicked");
            this.ActivateCape();
            break;

        case SetActionIcon.IconType.DRINK_WATER:
            Debug.Log("Drink Water Clicked");
            this.ActivateDrinkWater();
            break;

        case SetActionIcon.IconType.INVESTIGATE:
            Debug.Log("Investigate Clicked");
            this.ActivateInvestigate();
            break;

        case SetActionIcon.IconType.UNINITIALIZED:
            Debug.Log("Uninitialized Clicked");
            break;

        default:
            Debug.Log("Clicked");
            break;
        }
    }
Ejemplo n.º 3
0
    void Start()
    {
        this._actionScript = GameObject.FindWithTag("Actions").GetComponent <SetActionIcon>();
        this._type         = SetActionIcon.IconType.UNINITIALIZED;

        //this.DeactivateAll();
        //this.DeactivateAllInput();
    }