public override void begin() { base.begin(); aimingUnit = _context.selectedUnit.GetComponent <Unit.Unit>(); //canStepOntoBlueTiles = Array.Exists(unit.properties.tags, tag => tag == Tag.CanStepOntoBlueTiles); aimingUnit.CreateRangeOverlay(OverlayType.Attack); }
public override void begin() { base.begin(); unit = _context.selectedUnit.GetComponent <Unit.Unit>(); rb = _context.selectedUnit.GetComponent <Rigidbody2D>(); targetPosition = Vector3.zero; didMove = false; canStepOntoBlueTiles = Array.Exists(unit.properties.tags, tag => tag == Tag.CanStepOntoBlueTiles); unit.CreateRangeOverlay(OverlayType.Move); }