예제 #1
0
 void Awake()
 {
     gameItemDrop = GetComponent <ItemDrop>();
     if (gameItemDrop == null)
     {
         gameItemDrop = gameObject.AddComponent <ItemDrop>();
     }
 }
예제 #2
0
 void Awake()
 {
     gameItemDrop = GetComponent<ItemDrop>();
     if (gameItemDrop == null) gameItemDrop = gameObject.AddComponent<ItemDrop>();
 }