Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- using PathologicalGames;
- namespace SpartanFist
- {
- public class WhoIsYourDaddy : MonoBehaviour
- {
- // (and what does he do?)
- public SpawnPool MyDaddy { get { return owningPool; } }
- protected SpawnPool owningPool;
- protected virtual void OnSpawned(SpawnPool ourSpawnPool)
- {
- owningPool = ourSpawnPool;
- }
- protected virtual void OnDespawned(SpawnPool ourSpawnPool)
- {
- // (we cease caring about what owns us once we're despawned)
- owningPool = null;
- }
- }
- }
Add Comment
Please, Sign In to add comment