You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
943 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
public class AniEnd : MonoBehaviour
{
Animator animator;
public ErrorTip errorTip;
private void Awake()
{
animator = GetComponent<Animator>();
}
private void Start()
{
animator.SetBool("HuXi",Level2Manager.Instance.isHasHX);
animator.SetBool("GuanChaHuXi", Level2Manager.Instance.isHasHX);
}
public void E_HuhuanEnd()
{
EventManager.Instance.emit("HuHuanEnd");
}
public void E_GameEnd()
{
errorTip.InitThis("¹§Ï²Í¨¹Ø", 60);
DialogueController.Instance.StartDialogue(4);
Level2Manager.Instance.allOperate[2].Finished();
EduCoderTool.WebConnecter.Singleton.SendResultToWeb(true);
}
IEnumerator Timer(Action action,float t) {
yield return new WaitForSeconds(t);
action.Invoke();
}
}