DefaultWeapon.cs 382 B

1234567891011121314
  1. using UnityEngine;
  2. using System.Collections;
  3. public class DefaultWeapon : Weapon
  4. {
  5. public int pointsPenalty = -50;
  6. public override PoolObject Fire()
  7. {
  8. ScoreChangeData scoreChangeData = new ScoreChangeData(ScoreChangeData.Source.CondomDispenser, pointsPenalty, Vector3.zero);
  9. NotificationCenter.Post(NotificationType.AddToScore, scoreChangeData);
  10. return base.Fire();
  11. }
  12. }