예제 #1
0
        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);
        }
예제 #2
0
 public override void OnInspectorGUI()
 {
     XBaseEditor.DrawLogo();
     base.OnInspectorGUI();
     XMonoBehaviourEditor.ShowXAttributeMember(target);
 }