Beispiel #1
0
    private static new StageInfo Create()
    {
        StageInfo result = PanelWithChildren.Create <StageInfo> ();

        result.gameObject.name = "panel_StageInfo";

        RectTransform rt = result.gameObject.transform as RectTransform;

        rt.offsetMin = new Vector2(6, 0);
        rt.offsetMax = new Vector2(8, 6);

        result.items = new List <GameObject> ();

        result.LiScore = CreateScore();
        result.items.Add(result.LiScore.gameObject);

        result.LiHitPoints = CreateHitPoints();
        result.items.Add(result.LiHitPoints.gameObject);

        result.buffCaption = CreateBuffCaption();
        result.items.Add(result.buffCaption.gameObject);

        result.buffZone = BuffZone.Create();
        result.items.Add(result.buffZone.gameObject);

        result.alignDirection = Aligner.AlignDirection.adTop;
        result.SetAligner_Pivot();
        result.Rebuild();

        return(result);
    }