1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using Mono;
- using Mono.UI.Core;
- using UnityEngine;
- public class GameObjectOnclick : MonoBehaviour
- {
- public Animator Animator;
- void Start()
- {
- Animator.Play("dabaojianshan");
- }
- // Update is called once per frame
- void Update()
- {
- }
- private bool isEnable;
- private void OnMouseDown()
- {
- if (isEnable)
- {
- return;
- }
- Animator.Play("init");
-
- UIManager.Instance.GetPanel<TipPanel>().DBJNext();
- isEnable = true;
- TimeComponent.Instance.AddTimer(1f, () =>
- {
- Animator.Play("dabaojianshan");
- isEnable = false;
- });
- }
- }
|