Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions EXILED/Exiled.API/Features/Toys/AdminToy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ public Vector3 Scale
}
}

/// <summary>
/// Gets the <see cref="UnityEngine.GameObject"/> of the toy.
/// </summary>
public GameObject GameObject => AdminToyBase.gameObject;

/// <summary>
/// Gets the <see cref="UnityEngine.Transform"/> of the toy.
/// </summary>
public Transform Transform => AdminToyBase.transform;

/// <summary>
/// Gets or sets the movement smoothing value of the toy.
/// <para>
Expand Down
6 changes: 2 additions & 4 deletions EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ internal ShootingTargetToy(ShootingTarget target)
/// </summary>
public ShootingTarget Base { get; }

/// <summary>
/// Gets the <see cref="UnityEngine.GameObject"/> of the target.
/// </summary>
public GameObject GameObject => Base.gameObject;
/// <inheritdoc cref="AdminToy.GameObject"/>
public new GameObject GameObject => base.GameObject;

/// <summary>
/// Gets the <see cref="UnityEngine.GameObject"/> of the bullseye.
Expand Down