Beispiel #1
0
 public void SetupElements(BuildingTooltip buildingTooltip, SupportViewComponentState s)
 {
     if (this.State != SupportViewComponentState.Dormant)
     {
         return;
     }
     this.buildingTooltip = buildingTooltip;
     this.State           = s;
     this.tooltipHelper.SetupElements(this.Entity.Get <GameObjectViewComponent>(), buildingTooltip.TooltipElement, 0f, true, false);
 }
Beispiel #2
0
 public void TeardownElements()
 {
     if (this.buildingTooltip != null)
     {
         this.buildingTooltip.DestroyTooltip();
         this.buildingTooltip = null;
     }
     this.State = SupportViewComponentState.Dormant;
     this.tooltipHelper.TeardownElements(false);
 }
Beispiel #3
0
 public SupportViewComponent()
 {
     this.buildingTooltip = null;
     this.State           = SupportViewComponentState.Dormant;
     this.tooltipHelper   = new TooltipHelper();
 }