Target Was Set ========================== .. code-block:: csharp public event Action TargetWasSet This event fired when the shell's target is set or changed (via ``Setup`` or ``SetTarget``). Passes the new target ``Unit``. .. code-block:: csharp // this example code can be run from anywhere you have a ShellService reference injected var shell = shellService.SpawnShell(shellPrefab, shootPoint.position, shootPoint.rotation, ownerUnit, targetUnit); shell.TargetWasSet += OnShellTargetWasSet; void OnShellTargetWasSet(Unit target) { // your actions here }