Example #1
0
        private void OnSkillkButtonClick(UnityEngine.UI.Button button, bool isPress)
        {
            ePlayerButtonEnum val = (ePlayerButtonEnum)System.Enum.Parse(typeof(ePlayerButtonEnum), button.name);

            Global.InputMgr.SetButton(val, isPress);

            if (isPress == false)
            {
                UIModuleCoolTimeIcon coolTimeIcon =
                    ComponentFactory.GetComponent <UIModuleCoolTimeIcon>(button.gameObject, IfNotExist.ReturnNull);
                if (coolTimeIcon != null)
                {
                    coolTimeIcon.SetCoolTimeIcon(1.5f, true, null);
                }
            }
        }
Example #2
0
        private void OnAttackButtonClick(UnityEngine.UI.Button button, bool isPress)
        {
            {
                Global.InputMgr.SetButton(ePlayerButton.FIRE3, isPress);
            }

            if (isPress == false)
            {
                UIModuleCoolTimeIcon coolTimeIcon =
                    ComponentFactory.GetComponent <UIModuleCoolTimeIcon>(button.gameObject, IfNotExist.ReturnNull);
                if (coolTimeIcon != null)
                {
                    coolTimeIcon.SetCoolTimeIcon(1.0f, false, null);
                }
            }
        }