public override void OnInspectorGUI() { XBaseEditor.DrawLogo(); base.OnInspectorGUI(); XMonoBehaviourEditor.ShowXAttributeMember(target); var networkBehaviour = target as NetworkBehaviour; XBaseWindow.CreateCheckBox("isServer", networkBehaviour.isServer); XBaseWindow.CreateCheckBox("isClient", networkBehaviour.isClient); XBaseWindow.CreateCheckBox("isLocalPlayer", networkBehaviour.isLocalPlayer); XBaseWindow.CreateIntField("netId", (int)networkBehaviour.netId.Value); XBaseWindow.CreateIntField("playerControllerId", (int)networkBehaviour.playerControllerId); }
public override void OnInspectorGUI() { XBaseEditor.DrawLogo(); base.OnInspectorGUI(); XMonoBehaviourEditor.ShowXAttributeMember(target); }