public override void OnEditorGui() { if (gui.Button("Die")) { _PlayerOwn.networkView.RPC("Die", RPCMode.All); } if (gui.Button("WakeUp")) { _PlayerOwn.networkView.RPC("WakeUp", RPCMode.All); } CantDie = GUI.Toggle("CantDie", CantDie); hostDebug = (hostDebug)GUI.EnumPopup(hostDebug); enableZombies = GUI.Toggle("zombies", enableZombies); if (gui.Button("CreateZombie")) { InstZombie(); } //enableAutoStart = gui.Toggle("autostart", enableAutoStart); base.OnEditorGui(); }
public override void OnEditorGui() { if (gui.Button("Die")) _PlayerOwn.networkView.RPC("Die", RPCMode.All); if (gui.Button("WakeUp")) _PlayerOwn.networkView.RPC("WakeUp", RPCMode.All); CantDie = GUI.Toggle("CantDie", CantDie); hostDebug = (hostDebug)GUI.EnumPopup(hostDebug); enableZombies = GUI.Toggle("zombies", enableZombies); if (gui.Button("CreateZombie")) InstZombie(); //enableAutoStart = gui.Toggle("autostart", enableAutoStart); base.OnEditorGui(); }