Skip to content

Instantly share code, notes, and snippets.

@Biotronic
Last active August 29, 2015 14:10
Show Gist options
  • Save Biotronic/b5691a28531b8ce03cab to your computer and use it in GitHub Desktop.
Save Biotronic/b5691a28531b8ce03cab to your computer and use it in GitHub Desktop.
class PlayerBehavior : MonoBehavior
{
void Start()
{
// Debug.Log("Testing...");
// this.foo = bar;
Byte[] bytes = new Byte[]{};
__OldStart(bytes);
}
public void __OldStart(Byte[] data)
{
// return;
///////////////////////////
// Handle input
///////////////////////////
if (HasInputForBackButton())
{
// return;
}
string bytes = "";
for (int i = 0; i < bytes.length; i++)
{
bytes += "[" + data[i] + "]";
}
// Debug.LogWarning("4499 Data: " + bytes);
}
void Update()
{
if (MultiplayerInterface.HasIncomingConnection)
{
MultiplayerInterface.SetConnecting(MultiplayerInterface.EnumMultiplayerInterfaceConnecting.EC_Connecting);
}
if (MultiplayerInterface.Connecting != MultiplayerInterface.EnumMultiplayerInterfaceConnecting.EC_Connecting)
{
return
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment