コード例 #1
0
 /// <summary>
 /// 呼叫_event,如果沒有事件則不呼叫
 /// </summary>
 /// <param name="_event"></param>
 /// <param name="_eventData"></param>
 protected void CallEvent(MyDelegate.ButtonDelegate _event, PointerEventData _eventData)
 {
     if (_event != null)
     {
         _event.Invoke(ExtraData, _eventData);
     }
 }
コード例 #2
0
 /// <summary>
 /// 設定技能委派
 /// </summary>
 /// <param name="_skill"></param>
 /// <param name="_stopSkill"></param>
 public void SkillEventSet(
     ref MyDelegate.ButtonDelegate _skill,
     ref MyDelegate.ButtonDelegate _stopSkill
     )
 {
     _skill     -= Skill;
     _skill     += Skill;
     _stopSkill -= StopSkill;
     _stopSkill += StopSkill;
 }
コード例 #3
0
 /// <summary>
 /// 設定攻擊委派
 /// </summary>
 /// <param name="_attack"></param>
 /// <param name="_stopAttack"></param>
 public void AttackEventSet(
     ref MyDelegate.ButtonDelegate _attack,
     ref MyDelegate.ButtonDelegate _stopAttack
     )
 {
     _attack     -= Attack;
     _attack     += Attack;
     _stopAttack -= StopAttack;
     _stopAttack += StopAttack;
 }