public InteractiveObject(Node _node, InteractiveObjectAsset _asset, Rotation _rotation) { node = _node; Asset = _asset; Rotation = _rotation; CurrentState = State.Default; }
public void TrySetInteractiveObject(InteractiveObjectAsset _asset, Rotation _rotation) { if (AttachedInteractiveObject != null) { return; } AttachedInteractiveObject = new InteractiveObject(this, _asset, _rotation); ScheduleUpdateGraphicsForSurroundingTiles(); }
public void TrySetInteractiveObjectTemporary(InteractiveObjectAsset _asset, Rotation _rotation) { if (UseAttachedInteractiveObjectTemporary) { return; } AttachedInteractiveObjectTemporary = new InteractiveObject(this, _asset, _rotation); UseAttachedInteractiveObjectTemporary = true; ScheduleUpdateGraphicsForSurroundingTiles(); }