Skip to content

Commit ad7a36d

Browse files
cleanup
1 parent 546fc01 commit ad7a36d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Assets/BossRoom/Scripts/Game/Server/Action/TossAction.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Unity.Multiplayer.Samples.BossRoom.Server
66
{
77
/// <summary>
8-
/// Action responsible for creating a projectile object.
8+
/// Action responsible for creating a physics-based thrown object.
99
/// </summary>
1010
public class TossAction : Action
1111
{
@@ -15,8 +15,7 @@ public TossAction(ServerCharacter parent, ref ActionRequestData data) : base(par
1515

1616
public override bool Start()
1717
{
18-
//snap to face the direction we're firing, and then broadcast the animation, which we do immediately.
19-
//m_Parent.physicsWrapper.Transform.forward = Data.Direction;
18+
// snap to face the direction we're firing
2019

2120
if (m_Data.TargetIds != null && m_Data.TargetIds.Length > 0)
2221
{
@@ -71,7 +70,7 @@ ActionDescription.ProjectileInfo GetProjectileInfo()
7170
}
7271

7372
/// <summary>
74-
/// Instantiates and configures the arrow. Repeatedly calling this does nothing.
73+
/// Instantiates and configures the thrown object. Repeatedly calling this does nothing.
7574
/// </summary>
7675
/// <remarks>
7776
/// This calls GetProjectilePrefab() to find the prefab it should instantiate.
@@ -88,7 +87,7 @@ void Throw()
8887

8988
var networkObjectTransform = no.transform;
9089

91-
// point the projectile the same way we're facing
90+
// point the thrown object the same way we're facing
9291
networkObjectTransform.forward = m_Parent.physicsWrapper.Transform.forward;
9392

9493
networkObjectTransform.position = m_Parent.physicsWrapper.Transform.localToWorldMatrix.MultiplyPoint(networkObjectTransform.position) +

0 commit comments

Comments
 (0)