コード例 #1
0
ファイル: Entity.cs プロジェクト: c2001324/Leo
 public void OnRightClick(EntityModelSelectType type)
 {
     if (centerCell != null && type != EntityModelSelectType.FromCell)
     {
         centerCell.room.OnRightClickEntity(this);
     }
 }
コード例 #2
0
 public void RightClick(EntityModelSelectType type)
 {
     if (isSelectable)
     {
         entity.OnRightClick(type);
         onRightClick.Invoke();
     }
 }
コード例 #3
0
 public void UnSelect(EntityModelSelectType type)
 {
     if (isSelectable)
     {
         entity.OnUnselect(type);
         onUnselect.Invoke();
         model.CloseHighlight();
     }
 }
コード例 #4
0
 public void Select(EntityModelSelectType type)
 {
     if (isSelectable)
     {
         entity.OnSelect(type);
         onSelect.Invoke();
         model.SetHighlight(CTeamComponent.GetRelation(TeamId.Team_0, m_TeamComponent.teamId));
     }
 }