public MenuScene() : base() { init(); instance = this; score = 0; }
public override void init() { instance = this; Santa = new List <Rujura>(); Tonakai = new List <Odoshishi>(); rcount = 0; ocount = 0; Time = 0; instance = this; var back = new Graphic(-20); back.GraphName = "resource/img/back.png"; gun = new Gun(1); gun.GraphName = "resource/img/gun.png"; var text = new Text(2); text.FontHandle = DX.CreateFontToHandle(null, 70, -1); text.top = new Vector2(1200, 700); text.color = DX.GetColor(240, 240, 240); text.updateAction = () => { text.text = "Score:" + score; }; }