public override void Activate(Unit _, Action action, ActionController controller) { this.action = action as ShootAction; this.controller = controller as ShootActionController; instance = Instantiate(display, this.controller.rotationPoint.position, Quaternion.identity); instance.SetDisplayTarget(Vector2.right, this.controller.SpawnPointDistance, this.action.range + this.controller.SpawnPointDistance, this.action.bulletSpread); instance.SetPreviewMode(ActionPreviewDisplay.PreviewMode.Focus); }
public override void Activate(Unit _, Action action, ActionController controller) { this.action = action as ShootAction; this.controller = controller as ShootActionController; instance = Instantiate(display); instance.Init(); instance.SetPreviewMode(ActionPreviewDisplay.PreviewMode.Focus); }