Objects are created in the same location.
I want to create one unit of the DB for each field object. All units are created on the same field object. For example, I want to create unit a in field A, unit b in field B. However, my code is created by overlapping units a, b in field A.
 void Start() {
         MilitaryGameDB.instance.Open ();
         IUnitDB inventoryUnit = MilitaryGameDB.instance.GetIUnitDB ();
         InventoryUnit[] units = inventoryUnit.GetInventoryUnits ();
 
         foreach (InventoryUnit unit in units) {
             Inventory insert = Instantiate (soldier, unitPositions[0].position, Quaternion.identity);
             print (unitPositions[0].position);
 
         }
     }
 
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Rotation Changing Z-Coordinate Value 0 Answers
Random Generation (Dungeon) with improvements in mind. 0 Answers
How to use the results of a dice roll? 2 Answers
OnGUI will not show up? 1 Answer
Why isn't my object lerping ? C# 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                