Exemple #1
0
    void Awake()
    {
        instance = this;

        objPrefab = Resources.Load <DMM_StunMissile>("Prefabs/Projectiles/StunMissile");
        objPool   = new Pool <DMM_StunMissile>(8, Factory, DMM_StunMissile.Initialize, DMM_StunMissile.Dispose, true);
    }
Exemple #2
0
 public void ReturnToPool(DMM_StunMissile obj)
 {
     obj.transform.parent = transform;
     objPool.DisablePoolObject(obj);
 }
Exemple #3
0
 public static void Dispose(DMM_StunMissile grenadeObj)
 {
     grenadeObj.gameObject.SetActive(false);
 }
Exemple #4
0
 public static void Initialize(DMM_StunMissile grenadeObj)
 {
     grenadeObj.gameObject.SetActive(true);
 }