/**
 * Copyright(c) Live2D Inc. All rights reserved.
 *
 * Use of this source code is governed by the Live2D Open Software license
 * that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
 */
using UnityEngine;
namespace Live2D.Cubism.Core
{
    /// 
    /// Extends s.
    /// 
    public static class GameObjectExtensionMethods
    {
        /// 
        /// Finds a  relative to a .
        /// 
        /// .
        /// Condition for including parents in search.
        /// The relative  if found;  otherwise.
        public static CubismModel FindCubismModel(this GameObject self, bool includeParents = false)
        {
            // Validate arguments.
            if (self == null)
            {
                return null;
            }
            return self.transform.FindCubismModel(includeParents);
        }
    }
}