Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetButtonDown("P" + playerNumber + "_Button_" + button))
     {
         SoundWave obj = SoundWave.Create(radius, lifeTime);
         obj.transform.position = this.transform.position;
     }
 }
    public override void UpdateComponent()
    {
        base.UpdateComponent();

        if (MainPlayer.buttonDownList[whistleKey])
        {
            SoundWave obj = SoundWave.Create(radius, lifeTime);
            obj.transform.position = this.transform.position;
        }
    }