상속: MonoBehaviour
예제 #1
0
        protected override void Initialize()
        {
            DeployGateSDK.Install();
            int length = SystemInstance.SYSTEM_INSTANCE.Length;

            for (int index = 0; index < length; ++index)
            {
                System.Type type       = SystemInstance.SYSTEM_INSTANCE[index];
                GameObject  gameObject = new GameObject();
                gameObject.get_transform().set_parent(((Component)this).get_transform());
                ((UnityEngine.Object)gameObject.get_transform()).set_name(type.Name);
                gameObject.AddComponent(type);
            }
            UnityEngine.Object.DontDestroyOnLoad((UnityEngine.Object) this);
        }
예제 #2
0
    void OnGUI()
    {
        if (DeployGateSDK.IsInitialized())
        {
            DrawLabel("IsInitialized", DeployGateSDK.IsInitialized().ToString());
            DrawLabel("IsDeployGateAvailable", DeployGateSDK.IsDeployGateAvailable().ToString());
            DrawLabel("IsInitialized", DeployGateSDK.IsInitialized().ToString());
            DrawLabel("IsAuthorized", DeployGateSDK.IsAuthorized().ToString());
            DrawLabel("GetLoginUsername", DeployGateSDK.GetLoginUsername());
            DrawLabel("GetAuthorUsername", DeployGateSDK.GetAuthorUsername());

            GUILayout.Label("<size=24><b>SendLog</b></size>");
            textField = GUILayout.TextField(textField);
            GUILayout.BeginHorizontal(GUILayout.Width(Screen.width));

            if (GUILayout.Button("<size=18><b>LogDebug</b></size>"))
            {
                DeployGateSDK.LogDebug(textField);
            }
            if (GUILayout.Button("<size=18><b>LogInfo</b></size>"))
            {
                DeployGateSDK.LogInfo(textField);
            }
            if (GUILayout.Button("<size=18><b>LogVerbose</b></size>"))
            {
                DeployGateSDK.LogVerbose(textField);
            }
            GUILayout.EndHorizontal();
            GUILayout.BeginHorizontal(GUILayout.Width(Screen.width));
            if (GUILayout.Button("<size=18><b><color=yellow>LogWarn</color></b></size>"))
            {
                DeployGateSDK.LogWarn(textField);
            }
            if (GUILayout.Button("<size=18><b><color=red>LogError</color></b></size>"))
            {
                DeployGateSDK.LogError(textField);
            }
            GUILayout.EndHorizontal();

            GUILayout.Label("<size=24><b>Refresh</b></size>");

            if (GUILayout.Button("<size=18><b>Refresh</b></size>"))
            {
                DeployGateSDK.Refresh();
            }
        }
    }
예제 #3
0
 void Start()
 {
     DeployGateSDK.Install();
 }