示例#1
0
 // 최초 Obatainable 최초 소환
 public static void Summon(this Obtainable obtainable, Vector2Int position)
 {
     if (BattleManager.GetUnit(position) != null)
     {
         AddObtainable(BattleManager.GetUnit(position), obtainable);
     }
     else if (BattleManager.GetObtainable(position) == null)
     {
         FieldManager.GetTile(position).SetObtainable(obtainable);
         obtainable.Position = position;
         BattleManager.instance.AllObtainables.Add(obtainable);
         BattleView.MakeObtainableObject(obtainable, position);
         // Debug.Log(obtainable.ToString());
     }
     else
     {
         Debug.LogWarning("이미 위치에 뭔가 존재합니다.");
     }
 }