コード例 #1
0
    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);
    }
コード例 #2
0
 public static void Release(HeadUpGuild headUpGuild)
 {
     if (headUpGuild != null)
     {
         headUpGuild.Dispose();
         HeadUpGuildPool.Release(headUpGuild);
     }
 }