Guest User

Untitled

a guest
Oct 1st, 2019
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using PathologicalGames;
  5.  
  6. namespace SpartanFist
  7. {
  8. public class WhoIsYourDaddy : MonoBehaviour
  9. {
  10. // (and what does he do?)
  11. public SpawnPool MyDaddy { get { return owningPool; } }
  12. protected SpawnPool owningPool;
  13.  
  14. protected virtual void OnSpawned(SpawnPool ourSpawnPool)
  15. {
  16. owningPool = ourSpawnPool;
  17. }
  18.  
  19. protected virtual void OnDespawned(SpawnPool ourSpawnPool)
  20. {
  21. // (we cease caring about what owns us once we're despawned)
  22. owningPool = null;
  23. }
  24. }
  25. }
Add Comment
Please, Sign In to add comment