public virtual void Start() { if (logicButton == null) { logicButton = GetComponentInChildren <LogicButton>(); } logicButton.SetButtonObj(elementObject); }
public LogicButtonPoint(LogicButtonData data) { Data = data; Position = data.Position; _maxViewDistance = data.Range; _minViewDistance = Math.Min(_minViewDistance, _maxViewDistance / 2); StyleSheet.Load("/map/logicbutton/LogicButtonPoint.scss"); Hud.Current.RootPanel.AddChild(this); _entity = Entity.FindByIndex(Data.NetworkIdent) as LogicButton; if (!string.IsNullOrEmpty(_entity.Description)) { _ = Add.Label(_entity.Description); } else { _ = Add.Image("ui/icons/ttt_button.png"); } }
public L_Button(int id, LogicButton _button) : base(1, 1, id) //Input 1 = Taster getrueckt { this.v_button = _button; output[0] = false; }