Пример #1
0
    private ReusableGameObject _instantiateNew()
    {
        ReusableGameObject gObj = GameObject.Instantiate(_prefab, _lair);

        gObj.OnDisable = _disableObject;
        return(gObj);
    }
Пример #2
0
 private void _disableObject(ReusableGameObject obj)
 {
     _enabled.Remove(obj);
     _disabled.Enqueue(obj);
 }