public static HeadUpGuild Get(Transform target, float offsetY, Camera camera) { var headGuild = HeadUpGuildPool.Get(); headGuild.Follow(target, Vector3.zero.SetY(offsetY), camera); headGuild.transform.SetParentEx(UIRoot.windowRoot); return(headGuild); }
public static void Release(HeadUpGuild headUpGuild) { if (headUpGuild != null) { headUpGuild.Dispose(); HeadUpGuildPool.Release(headUpGuild); } }