Skip to content

Commit

Permalink
Some fixes due to the project being broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
FairlySadPanda committed May 8, 2020
1 parent 01e9d6d commit 75f2aef
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.vs
*.prefab
*.asset
*.meta
6 changes: 3 additions & 3 deletions ChatController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public class ChatController : UdonSharpBehaviour
{
///<Summary>The text input field for this controller.</Summary>
public InputField input;
///<Summary>The manager we want to handle chat events.</Summary>
public EventEmissionManager manager;
///<Summary>The receiver we want to handle chat events.</Summary>
public EventReceiver receiver;

public string[] badWords;
private int maxMessageLength;
Expand All @@ -37,7 +37,7 @@ public void SendMessage()
string message = input.text;
if (badWordsFound(message) == false)
{
manager.SendEvent("ChatMessage", message.Replace(",", "|"));
receiver.SendEvent("ChatMessage", message.Replace(",", "|"));
}

input.text = null;
Expand Down
2 changes: 0 additions & 2 deletions UdonKeyboard/InWorldImmobilizeToggle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public void PressKey()
}

Networking.LocalPlayer.Immobilize(true);
keyEventListener.Freeze();
buttonImage.color = Color.blue;
toggle = true;
}
Expand All @@ -37,7 +36,6 @@ public void Deactivate()
}

buttonImage.color = Color.white;
keyEventListener.Unfreeze();
toggle = false;
}
}
2 changes: 1 addition & 1 deletion UdonKeyboard/KeyboardManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void Toggle()

if (Networking.LocalPlayer != null && !Networking.LocalPlayer.IsUserInVR())
{
logger.Toggle();
logScreen.Toggle();
}

gameObject.SetActive(!gameObject.activeSelf);
Expand Down
2 changes: 1 addition & 1 deletion UdonStringEvent/EventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class EventHandler : UdonSharpBehaviour
public void Handle()
{
string[] e = newEvent.Split(',');
Debug.Log("Got an event named " + e[0] + " with payload " + newEvent + " - am owner? " + ownerOfGame);
Debug.Log("Got an event named " + e[0] + " with payload " + newEvent);

// Event type switch. Contains both state and view events. (Too many synced strings currently will break eventually.)
// TODO: Replace with a true event bus when network event payloads are added.
Expand Down

0 comments on commit 75f2aef

Please sign in to comment.