Exemplo n.º 1
0
 public void OnRightClick(EntityModelSelectType type)
 {
     if (centerCell != null && type != EntityModelSelectType.FromCell)
     {
         centerCell.room.OnRightClickEntity(this);
     }
 }
Exemplo n.º 2
0
 public void RightClick(EntityModelSelectType type)
 {
     if (isSelectable)
     {
         entity.OnRightClick(type);
         onRightClick.Invoke();
     }
 }
Exemplo n.º 3
0
 public void UnSelect(EntityModelSelectType type)
 {
     if (isSelectable)
     {
         entity.OnUnselect(type);
         onUnselect.Invoke();
         model.CloseHighlight();
     }
 }
Exemplo n.º 4
0
 public void Select(EntityModelSelectType type)
 {
     if (isSelectable)
     {
         entity.OnSelect(type);
         onSelect.Invoke();
         model.SetHighlight(CTeamComponent.GetRelation(TeamId.Team_0, m_TeamComponent.teamId));
     }
 }