43 lines
642 B
C#
43 lines
642 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using DG.Tweening;
|
|
|
|
public class TaskPanel : Base
|
|
{
|
|
public Button closeBtn;
|
|
|
|
private bool isOpen = false;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
closeBtn.onClick.AddListener(CloseBtn);
|
|
}
|
|
|
|
public void CloseBtn()
|
|
{
|
|
if (isOpen)//关闭任务面板
|
|
{
|
|
|
|
|
|
isOpen = false;
|
|
}
|
|
else//打开任务面板
|
|
{
|
|
|
|
|
|
isOpen = true;
|
|
}
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|