/** [シングルトン]constructor */ private Render2D() { //ルート。 { this.root_gameobject = new UnityEngine.GameObject(); this.root_gameobject.name = "Render2D"; UnityEngine.GameObject.DontDestroyOnLoad(this.root_gameobject); this.root_transform = this.root_gameobject.GetComponent <UnityEngine.Transform>(); } //イベントシステム作成。入力フィールド用。 { if (Fee.Render2D.Config.CREATE_EVENTYSYSTEM == true) { this.eventsystem = Fee.Instantiate.Instantiate.CreateEventSystem("EventSystem", null); UnityEngine.GameObject.DontDestroyOnLoad(this.eventsystem); } } //スクリーン。 this.screen = new Screen(); //マテリアルリスト。 this.materiallist = new Material_List(); //スプライトリスト。 this.spritelist = new SpriteList(); //テキストリスト。 this.textlist = new TextList(); //入力フィールドリスト。 this.inputfieldlist = new InputFieldList(); //デフォルト。フォント。 this.default_font = UnityEngine.Resources.GetBuiltinResource <UnityEngine.Font>(Config.DEFAULT_FONT_NAME); //レイヤーリスト。 this.layerlist = new LayerList(this.root_gameobject.GetComponent <UnityEngine.Transform>()); //バーテックス計算タスク。 this.task_calcvertex = new Task_CalcVertex(this); //ソートリストタスク。 this.task_sortlist = new Task_SortList(this); //callback_on_change_screen_size this.callback_on_change_screen_size = null; }
/** [シングルトン]constructor */ private Render2D() { //ルート。 { this.root_gameobject = new UnityEngine.GameObject(); this.root_gameobject.name = "Render2D"; UnityEngine.GameObject.DontDestroyOnLoad(this.root_gameobject); this.root_transform = this.root_gameobject.GetComponent <UnityEngine.Transform>(); } //スクリーン。 this.screen = new Screen(); //マテリアルリスト。 this.materiallist = new MaterialList(); //スプライトリスト。 this.spritelist = new SpriteList(); //テキストリスト。 this.textlist = new TextList(); //入力フィールドリスト。 this.inputfieldlist = new InputFieldList(); //デフォルト。フォント。 this.default_font = UnityEngine.Resources.GetBuiltinResource <UnityEngine.Font>(Config.DEFAULT_FONT_NAME); //レイヤーリスト。 this.layerlist = new LayerList(this.root_gameobject.GetComponent <UnityEngine.Transform>()); //Resourceリスト。 this.resource_list = new ResourceList(this); //callback_on_change_screen_size this.callback_on_change_screen_size = null; //PlayerLoopType this.playerloop_flag = true; Fee.PlayerLoopSystem.PlayerLoopSystem.GetInstance().Add(PlayerLoopSystem.AddType.AddFirst, typeof(UnityEngine.PlayerLoop.PostLateUpdate), typeof(PlayerLoopType.PreDraw), this.PreDraw); }