private Bone GetBoneFromPool() { Bone bone = _bonesPool.DequeueFromPool(); if (!ReferenceEquals(bone, null)) { bone.gameObject.SetActive(true); return(bone); } return(Instantiate(_boneTemplate, _bonesParent)); }