25 lines
388 B
C#
25 lines
388 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class text_1 : MonoBehaviour
|
|
{
|
|
|
|
private text t1;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
t1 = this.GetComponent<text>();
|
|
t1.TimeEnd += test;
|
|
|
|
|
|
t1.upadte_time(1);
|
|
}
|
|
|
|
void test()
|
|
{
|
|
Debug.Log("计时器完成了!");
|
|
}
|
|
}
|