示例#1
0
    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;
        }
    }
示例#2
0
 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;
 }
示例#3
0
        /// <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);
        }
示例#4
0
    // 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);
    }
示例#5
0
    // 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);
            }
        }
    }
示例#6
0
 public void set_power(POWER power)
 {
     ControlTransferOut(CrazyradioRequest.SET_RADIO_POWER, (short)power, 0, 0, null);
 }
示例#7
0
 public void LaunchPower(POWER powerToFire)
 {
 }
示例#8
0
        //フレーム描画時に呼ばれるメソッド
        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 ();
            }
        }
示例#9
0
 static void PowerOn()
 {
     power = POWER.On;
 }
示例#10
0
 static void PowerOff()
 {
     power = POWER.Off;
 }
示例#11
0
 /// <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);
 }
示例#12
0
 public Player(Vector2 pos,string path)
     : base(pos,path,24.0f)
 {
     playerPower = POWER.ONE;
 }
示例#13
0
 public Chat(POWER power)
 {
     this.Power = (int)power;
 }
示例#14
0
 public Screen(POWER power)
 {
     this.Power = (int)power;
 }
示例#15
0
 public Screen(POWER power)
 {
     this.Power = (int)power;
 }
示例#16
0
 public Chat(POWER power)
 {
     this.Power = (int)power;
 }