コード例 #1
0
 void Awake()
 {
     if (!i)
     {
         i = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
コード例 #2
0
 void Start()
 {
     _mainTcp = GetComponentInParent <MainTCPConnection>();
 }