using System;
using System.Collections;
using System.Collections.Generic;
using Omega.Tools;
using UnityEngine;
public static class TransformExtensions
{
///
/// Возвращает всех потомков
///
/// Массив потомков
/// Параметр >указывает на null
/// Параметр >указывает на уничтоженный объект
public static Transform[] GetChildes(this Transform transform)
{
if (ReferenceEquals(transform, null))
throw new NullReferenceException(nameof(transform));
if (!transform)
throw new MissingReferenceException(nameof(transform));
return TransformUtility.GetChildesWithoutChecks(transform);
}
}