Guest User

Untitled

a guest
Jun 23rd, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public interface IActor
  2. {
  3. //actor stuff
  4. }
  5.  
  6. public class BaseShip : IActor
  7. {
  8. //base ship stuff
  9. }
  10.  
  11. public class PlayerShip: BaseShip
  12. {
  13. //Only the stuff for this particular ship
  14. }
  15.  
  16. IActor player = new PlayerShip();
  17.  
  18. List<IActor> actors = new List<IActor>(){new PlayerShip()};
Add Comment
Please, Sign In to add comment