Last active
August 29, 2015 14:10
-
-
Save Biotronic/b5691a28531b8ce03cab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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