29 lines
676 B
C#
29 lines
676 B
C#
![]() |
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using Doozy.Runtime.Reactor.Animations;
|
||
|
using Doozy.Runtime.Reactor.Animators;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class UiManager : Singleton<UiManager>
|
||
|
{
|
||
|
private Transform cardLayoutGroup;
|
||
|
public UIAnimator CardLayoutGroupAnimator { get; set; }
|
||
|
|
||
|
private void Init()
|
||
|
{
|
||
|
cardLayoutGroup = transform.Find("CardLayoutGroup");
|
||
|
CardLayoutGroupAnimator = cardLayoutGroup.GetComponent<UIAnimator>();
|
||
|
}
|
||
|
|
||
|
protected override void OnAwake()
|
||
|
{
|
||
|
Init();
|
||
|
}
|
||
|
|
||
|
public void AddCard()
|
||
|
{
|
||
|
Instantiate(DataManager.Inst.assaultCard, cardLayoutGroup);
|
||
|
}
|
||
|
}
|