protected override void Awake() { Application.targetFrameRate = 60; Application.SetStackTraceLogType(LogType.Log, StackTraceLogType.None); base.Awake(); _options = CommandLineOptions.Load( CommandLineOptionsJsonPath ); #if !UNITY_EDITOR // FIXME 이후 사용자가 원치 않으면 정보를 보내지 않게끔 해야 합니다. Mixpanel.SetToken("80a1e14b57d050536185c7459d45195a"); if (!(_options.PrivateKey is null)) { var privateKey = new PrivateKey(ByteUtil.ParseHex(_options.PrivateKey)); Address address = privateKey.ToAddress(); Mixpanel.Identify(address.ToString()); } Mixpanel.Init(); Mixpanel.Track("Unity/Started"); #endif if (_options.RpcClient) { Agent = GetComponent <RPCAgent>(); SubscribeRPCAgent(); } else { Agent = GetComponent <Agent>(); } States = new States(); LocalLayer = new LocalLayer(); MainCanvas.instance.InitializeIntro(); #if !UNITY_EDITOR var c = new CognitoAWSCredentials("ap-northeast-2:6fea0e84-a609-4774-a407-c63de9dbea7b", RegionEndpoint.APNortheast2); _logsClient = new AmazonCloudWatchLogsClient(c, RegionEndpoint.APNortheast2); Application.logMessageReceivedThreaded += UploadLog; #endif }
protected override void Awake() { Application.targetFrameRate = 60; Application.SetStackTraceLogType(LogType.Log, StackTraceLogType.None); base.Awake(); _options = CommandLineOptions.Load( CommandLineOptionsJsonPath ); #if !UNITY_EDITOR // FIXME 이후 사용자가 원치 않으면 정보를 보내지 않게끔 해야 합니다. Mixpanel.SetToken("80a1e14b57d050536185c7459d45195a"); if (!(_options.PrivateKey is null)) { var privateKey = new PrivateKey(ByteUtil.ParseHex(_options.PrivateKey)); Address address = privateKey.ToAddress(); Mixpanel.Identify(address.ToString()); } Mixpanel.Init(); Mixpanel.Track("Unity/Started"); #endif if (_options.RpcClient) { Agent = GetComponent <RPCAgent>(); SubscribeRPCAgent(); } else { Agent = GetComponent <Agent>(); } States = new States(); LocalLayer = new LocalLayer(); MainCanvas.instance.InitializeIntro(); }