public override void OnInspectorGUI() { CreateAudience editor = target as CreateAudience; editor.audience = EditorGUILayout.ObjectField("観客モデル", editor.audience, typeof(GameObject), true) as GameObject; if (folder = EditorGUILayout.Foldout(folder, "status")) { editor.memberNumber = EditorGUILayout.IntField("1列あたりの観客数", editor.memberNumber); editor.columnNumber = EditorGUILayout.IntField("観客列数", editor.columnNumber); editor.membersWidth = EditorGUILayout.FloatField("観客同士の間隔", editor.membersWidth); editor.columnsWidth = EditorGUILayout.FloatField("列同士の間隔", editor.columnsWidth); editor.columnsHeight = EditorGUILayout.FloatField("2列目以降に足される高さ", editor.columnsHeight); } }
private void CreateSelfClient() { CreateAudience audience = new CreateAudience(); audience.ClientId = ConfigurationManager.AppSettings["self.ClientId"]; audience.Base64Secret = ConfigurationManager.AppSettings["self.Base64Secret"]; audience.Name = ConfigurationManager.AppSettings["self.ClientName"]; Assert.IsNotNull(audience.ClientId); Assert.IsNotNull(audience.Base64Secret); Assert.IsNotNull(audience.Name); var existed = _audienceApplicationService.Get(audience.ClientId); if (existed != null && (existed as IAudienceStateProperties).Version > 0) { //do nothing } else { _audienceApplicationService.When(audience); } }