Exemplo n.º 1
0
    private void Start()
    {
        Debug.Log("GameStart...");
        TimerSys timerSys = GetComponent <TimerSys>();

        timerSys.InitSys();
    }
Exemplo n.º 2
0
    private void Start()
    {
        TimerSys timerSys = GetComponent <TimerSys>();

        timerSys.Init();

        AddTimerTask();
    }
Exemplo n.º 3
0
    public void Init()
    {
        Instance = this;

        pt.SetLog((string info) => {
            Debug.Log("PETimerLog" + info);
        });
    }
Exemplo n.º 4
0
    public void InitSys()
    {
        Instance = this;
        pt       = new PETimer();
        pt.SetLog((string info) => {
            Debug.Log("PETimeLog:" + info);
        });
        //pt.SetLog(delegate(string info) {
        //    Debug.Log("PETimeLog:" + info); });

        Debug.Log("TimerSys Init Done");
    }
Exemplo n.º 5
0
    // Start is called before the first frame update
    void Start()
    {
        //初始化定时类
        TimerSys timerSys = GetComponent <TimerSys>();

        timerSys.Init();
        btn.onClick.AddListener(ClickAddBtn);
        btnD.onClick.AddListener(ClickDelBtn);
        btnR.onClick.AddListener(ClickRepBtn);

        btnF.onClick.AddListener(ClickAddFBtn);
        btnFD.onClick.AddListener(ClickDelFBtn);
        btnFR.onClick.AddListener(ClickRepFBtn);
    }
Exemplo n.º 6
0
    void Start()
    {
        TimerSys timerSys = GetComponent <TimerSys>();

        timerSys.InitSys();
    }
Exemplo n.º 7
0
 /// <summary>
 /// 初始化脚本
 /// </summary>
 public void InitSys()
 {
     Instance = this;
     timer    = new PETimer();
     timer.SetLog((info) => Debug.Log(info));
 }
Exemplo n.º 8
0
 public void Init()
 {
     Instance = this;
     tid      = 0;
 }
Exemplo n.º 9
0
 void Start()
 {
     timerSys = new TimerSys();
     timerSys.InitSys();
     uiMng = UIManager.InitUiMng();
 }
Exemplo n.º 10
0
 public void InitSys()
 {
     Instance = this;
     Debug.Log("TimerSys Init Done");
 }