36 lines
746 B
C#
36 lines
746 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
public class Team : Anim
|
||
|
{
|
||
|
public Button CloseButton;
|
||
|
|
||
|
public GameObject down;
|
||
|
// Start is called before the first frame update
|
||
|
void Start()
|
||
|
{
|
||
|
movechild();
|
||
|
CloseButton.onClick.AddListener(() =>
|
||
|
{
|
||
|
this.gameObject.SetActive(false);
|
||
|
NavPanel.instance.OpenMain();
|
||
|
});
|
||
|
}
|
||
|
public void movechild()
|
||
|
{
|
||
|
down.transform.localPosition = new Vector3(0, -500, 0);
|
||
|
|
||
|
}
|
||
|
public void Backchild()
|
||
|
{
|
||
|
MoveToOriginBy(down);
|
||
|
}
|
||
|
// Update is called once per frame
|
||
|
void Update()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|