예제 #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>();
 }