1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using UnityEngine;
using System.Collections;
using System.Timers;
public class NewBehaviourScript : MonoBehaviour {
輸出:
get_gameObject can only be called from the main thread.
看來Coroutin的出現就是為了解決這個問題,友善大家使用,
當然往主線程裡Enqeue消息也是可以的
jiahuafu