public void Swapped_To_Enmu_Power(int level) { switch (level) { case 1: type_power = POWER.LV1; break; case 2: type_power = POWER.LV2; break; case 3: type_power = POWER.LV3; break; case 4: type_power = POWER.LV4; break; case 5: type_power = POWER.LV5; break; } }
public Boss(Vector2 pos,string path) : base(pos,path,96.0f) { new Vector2(pos.X,texture_info.TextureSizef.Y); this.Position =new Vector2(pos.X,texture_info.TextureSizef.Y); bossPower = POWER.ONE; }
/// <summary> /// 参数设置 /// </summary> /// <param name="power">开关</param> /// <param name="quailty">图像质量</param> public void Remote(POWER power, int quailty) { this.power = power; ClientPacket clientPacket = new ClientPacket(PacketType.Screen); clientPacket.screen = new ClientPacket.Screen(power); clientPacket.screen.Quality = quailty; if (handler.tcpClient == null || handler.tcpClient.Client.Connected == false) { return; } handler.packetStream.Send(clientPacket); }
// Start is called before the first frame update void Start() { powerIndex = POWER.LIGHTNING; switch (powerIndex) { case POWER.METEOR: selectedPower = new MeteorPower(); break; case POWER.LIGHTNING: selectedPower = new LightningPower(); break; } selectedPower.Initialize(transform, ControllerPose, InputSource); }
// Update is called once per frame void Update() { if (TriggerPress.GetStateDown(InputSource)) { selectedPower.TriggerDown(); powerActive = true; } if (TriggerPress.GetStateUp(InputSource)) { selectedPower.TriggerUp(); powerActive = false; } if (PadPress.GetStateDown(InputSource) && !powerActive) { //Open power select menu Destroy(GetComponent <Power>()); if (powerIndex == POWER.METEOR) { selectedPower = new LightningPower(); powerIndex = POWER.LIGHTNING; } else { selectedPower = new MeteorPower(); powerIndex = POWER.METEOR; } selectedPower.Initialize(transform, ControllerPose, InputSource); } if (GripPress.GetStateDown(InputSource)) { gripTimer = 0f; } if (GripPress.GetState(InputSource)) { gripTimer += Time.deltaTime; if (gripTimer > 2f) { SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); } } }
public void set_power(POWER power) { ControlTransferOut(CrazyradioRequest.SET_RADIO_POWER, (short)power, 0, 0, null); }
public void LaunchPower(POWER powerToFire) { }
//フレーム描画時に呼ばれるメソッド public override void Tick(float dt) { base.Tick (dt); var pos = this.Position; pos.Y += 3.3f * FMath.Sin (FrameCount * 0.015f); this.Position=pos; if(FrameCount%30f == 0) { bossPower = POWER.ONE; shot (); } if(FrameCount%400f == 0) { bossPower = POWER.TWO; shot (); } }
static void PowerOn() { power = POWER.On; }
static void PowerOff() { power = POWER.Off; }
/// <summary> /// 参数设置 /// </summary> /// <param name="power">开关</param> /// <param name="quailty">图像质量</param> public void Remote(POWER power, int quailty) { this.power = power; ClientPacket clientPacket = new ClientPacket(PacketType.Screen); clientPacket.screen = new ClientPacket.Screen(power); clientPacket.screen.Quality = quailty; if (handler.tcpClient == null || handler.tcpClient.Client.Connected == false) return; handler.packetStream.Send(clientPacket); }
public Player(Vector2 pos,string path) : base(pos,path,24.0f) { playerPower = POWER.ONE; }
public Chat(POWER power) { this.Power = (int)power; }
public Screen(POWER power) { this.Power = (int)power; }