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); }
public void TeardownElements() { if (this.buildingTooltip != null) { this.buildingTooltip.DestroyTooltip(); this.buildingTooltip = null; } this.State = SupportViewComponentState.Dormant; this.tooltipHelper.TeardownElements(false); }
public SupportViewComponent() { this.buildingTooltip = null; this.State = SupportViewComponentState.Dormant; this.tooltipHelper = new TooltipHelper(); }