public void Initialize(IPlayer controller, ITileControl <HexNode> hexControl, GameController gameController) { this.controller = controller; this.hexControl = hexControl; this.gameController = gameController; currentActionPoints = maxActionPoints; actions = new IAction[] { new Attack(this) }; }
public void Initialize(ITileControl <HexNode> hexControl) { enemyUnitPanel.gameObject.SetActive(false); unitPanel.gameObject.SetActive(false); this.hexControl = hexControl; unitIconCam = unitIconCamera.GetComponent <UnitIconCamera>(); enemyUnitIconCam = enemyUnitIconCamera.GetComponent <EnemyUnitIconCamera>(); singleton = this; }
private void OnSelectCurrent(object sender, MouseButtonEventArgs e) { Type type = sender.GetType(); ConstructorInfo constructorInfo = type.GetConstructor(new Type[] { }); ITileControl element = (ITileControl)constructorInfo.Invoke(new object[] { }); ColorToAdd.Children.Clear(); ColorToAdd.Children.Add((UIElement)element); this.currentSelection = element; }
public FrameHoverHelper(ITileControl tileHolder) { tileControl = tileHolder; foreach (TileGroup group in tileControl.Groups) { foreach (TileItem item in group.Items) { item.AllowAnimation = false; } } tileControl.Control.MouseMove += control_MouseMove; }
public MyTileControlHandler(ITileControl control) : base(control) { }
private void ClearStatus() { ColorToAdd.Children.Clear(); this.currentSelection = null; }
private void OnSelectCurrent(object sender, MouseButtonEventArgs e) { Type type = sender.GetType(); ConstructorInfo constructorInfo = type.GetConstructor(new Type[] { }); ITileControl element = (ITileControl)constructorInfo.Invoke(new object[] { }); ColorToAdd.Children.Clear(); ColorToAdd.Children.Add((UIElement) element); this.currentSelection = element; }