Class DestroyObjectAction
Action that destroys a specified game object in the scene.
[Serializable]
public class DestroyObjectAction : BaseAction, IAction
- Inheritance
-
DestroyObjectAction
- Implements
- Inherited Members
Methods
Execute(ICharacter, EventData)
Destroys the target game object if present in the event data.
public override void Execute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character initiating the action.
eventDataEventDataThe event data containing the target object.
Remarks
Reads Target; logs a warning when no target is present.
Server only, checked at runtime through EcaAuthority rather than with
#if UNITY_SERVER — that define is absent in the editor the scene server is
developed in, so the gate removed the body there instead of restricting it, and nothing
was ever destroyed.