Exemplo n.º 1
0
 public IronBounceCrate(Vector2 spritePosition, string spriteSheetName = "ironBounceCrate", DrawManager.Layer drawLayer = DrawManager.Layer.Playground) : base(spritePosition, spriteSheetName, drawLayer)
 {
     bounceMultiplierY += 0.5f;
     bounceBehaviour    = new BounceBehaviour(this, bounceMultiplierY);
     audioSourceBounce  = new AudioSource();
     clipBounce         = AudioManager.GetAudioClip("crateBounce");
 }
        public WoodenBounceCrate(Vector2 spritePosition, string spriteSheetName = "woodenBounceCrate", DrawManager.Layer drawLayer = DrawManager.Layer.Playground) : base(spritePosition, spriteSheetName, drawLayer)
        {
            Animation.IsActive = false; //sprite è quella vecchia con piu immagini, cambiare
            bounceMultiplierY += 0.5f;
            bounceBehaviour    = new BounceBehaviour(this, bounceMultiplierY);

            clipBounce = AudioManager.GetAudioClip("crateBounce");
        }