Example #1
0
 public C_DrawWasteland(GameDevice gameDevice, C_UpdateWastelandState state, float depth = 12, float alpha = 1f)
 {
     this.gameDevice = gameDevice;
     this.alpha      = alpha;
     this.depth      = depth;
     this.state      = state;
     liveTimer       = new Timer(10);
     name            = "P_Ice_";
 }
Example #2
0
        private void CreatWasteland(List <int> lb)
        {
            //実体生成
            Entity wasteland = Entity.CreateEntity("Wasteland", "Wasteland", new Transform2D());

            //位置設定
            C_BezierPoint bezier = new C_BezierPoint();

            //初期化毒沼
            C_UpdateWastelandState wastelandState = new C_UpdateWastelandState(lb);

            wasteland.RegisterComponent(wastelandState);
            wasteland.RegisterComponent(new C_DrawWasteland(gameDevice, wastelandState));
        }