ILaserable.cs 465 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. /// <summary>
  5. /// Interface used by LaserShot_Player to deal damage. Implement in an object you want to be able to damage with the player's laser gun.
  6. /// </summary>
  7. public interface ILaserable
  8. {
  9. /// <summary>
  10. /// Deal damage in some way.
  11. /// </summary>
  12. /// <param name="damage">How much damage to deal.</param>
  13. void TakeDamage(int damage);
  14. }