Skip to content

Commit

Permalink
💥 refactor!(touch-switch): Remove deprecated option
Browse files Browse the repository at this point in the history
  • Loading branch information
esnya committed Jul 26, 2022
1 parent 3ce1151 commit 693ca19
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public class TouchSwitch : UdonSharpBehaviour

[Header("Networked")]
public bool ownerOnly = false;
[Tooltip("Deprecated: Use networked")] public bool sentToOwner = false;
public bool networked = false;
public NetworkEventTarget networkEventTarget;

Expand Down Expand Up @@ -90,13 +89,7 @@ private bool GetTouchState(bool isLeft)

private void Start()
{
if (sentToOwner && !networked)
{
networked = true;
networkEventTarget = NetworkEventTarget.Owner;
}

SendCustomEventDelayedSeconds(nameof(_AwakeCheck), UnityEngine.Random.Range(0, awakeCheckInterval));
SendCustomEventDelayedSeconds(nameof(_AwakeCheck), Random.Range(0, awakeCheckInterval));
}

public void _PostStart()
Expand Down

0 comments on commit 693ca19

Please sign in to comment.