Table of Contents

Class DestroyObjectAction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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

initiator ICharacter

The character initiating the action.

eventData EventData

The 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.