Skip to content

Commit

Permalink
Fixed logic in SimpleNetworkingInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
loco-choco committed Nov 12, 2022
1 parent ccd3f56 commit 4983b71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ public virtual void OnIsPuppetChange(bool isPuppet)
{
for (int i = 0; i < scriptsToDisableWhenPuppet.Length; i++)
{
scriptsToDisableWhenPuppet[i].enabled = isPuppet;
scriptsToDisableWhenPuppet[i].enabled = !isPuppet;
}
for (int i = 0; i < gameObjectsToDisableWhenPuppet.Length; i++)
{
gameObjectsToDisableWhenPuppet[i].SetActive(isPuppet);
gameObjectsToDisableWhenPuppet[i].SetActive(!isPuppet);
}
Rigidbody r = GetComponent<Rigidbody>();
if (r != null && RigidbodyToKinematicWhenPuppet)
Expand Down

0 comments on commit 4983b71

Please sign in to comment.