/** [シングルトン]constructor */ private Fade() { //flag this.flag.Initialize(); //sprite this.sprite = new Sprite2D_Fade(null, (Fee.Render2D.Render2D.MAX_LAYER - 1) * Fee.Render2D.Render2D.DRAWPRIORITY_STEP); this.sprite.SetTextureRect(0.0f, 0.0f, Fee.Render2D.Render2D.TEXTURE_W, Fee.Render2D.Render2D.TEXTURE_H); this.sprite.SetColor(UnityEngine.Color.clear); this.sprite.SetMaterialType(Fee.Render2D.Config.MaterialType.Alpha); //SetRectFromScreenSize this.SetRectFromScreenSize(); //スクリーンサイズ変更通知。登録。 //ソートリストタスク終了後、バーテックス計算タスク開始前。 Fee.Render2D.Render2D.GetInstance().RegistOnChangeScreenSize(this.OnChangeScreenSize); }
/** [シングルトン]constructor */ private Fade() { //flag this.flag.Initialize(); //sprite this.sprite = new Sprite2D_Fade(null, (Fee.Render2D.Config.MAX_LAYER - 1) * Fee.Render2D.Config.DRAWPRIORITY_STEP); this.sprite.SetTextureRect(0.0f, 0.0f, Fee.Render2D.Config.TEXTURE_W, Fee.Render2D.Config.TEXTURE_H); this.sprite.SetColor(UnityEngine.Color.clear); this.sprite.SetMaterialType(Fee.Render2D.MaterialType.Alpha); //SetRectFromScreenSize this.SetRectFromScreenSize(); //スクリーンサイズ変更通知。登録。 //ソートリストタスク終了後、バーテックス計算タスク開始前。 Fee.Render2D.Render2D.GetInstance().RegistOnChangeScreenSize(this.OnChangeScreenSize); //PlayerLoopType this.playerloop_flag = true; Fee.PlayerLoopSystem.PlayerLoopSystem.GetInstance().Add(Config.PLAYERLOOP_ADDTYPE, Config.PLAYERLOOP_TARGETTYPE, typeof(PlayerLoopType.Fee_Fade_Main), this.Main); }