コード例 #1
0
 private void OnMouseDown()
 {
     Debug.Log("----------------------------------");
     Debug.Log(this.gameObject.name);
     mnInstance = WordPuzzleManager.instance;
     mnInstance.StartNewWordDrag(this.gameObject);
 }
コード例 #2
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
         instance = this;
     }
 }