示例#1
0
 // Use this for initialization
 void Start()
 {
     //players = new GameObject[4];
     DPC = FindObjectOfType<DynamicPlayerCount>();
 }
示例#2
0
 void Awake()
 {
     if (Original)
     {
         DestroyImmediate(gameObject);
     }
     else
     {
         DontDestroyOnLoad(gameObject);
         Original = this;
     }
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     DPC = FindObjectOfType<DynamicPlayerCount>();
 }