유닛 생성시 UnitController의 rotation에 영향을 받던 문제 해결
This commit is contained in:
parent
13cfeb3315
commit
60da0d14a1
File diff suppressed because it is too large
Load Diff
@ -129,6 +129,10 @@ namespace BlueWaterProject
|
||||
return;
|
||||
}
|
||||
|
||||
var unitControllerTransform = unitController.transform;
|
||||
var unitControllerRotation = unitControllerTransform.rotation;
|
||||
unitControllerTransform.rotation = Quaternion.identity;
|
||||
|
||||
for (var i = 0; i < unitController.unit.soliderCount; i++)
|
||||
{
|
||||
var row = i / matrix.columns;
|
||||
@ -159,6 +163,7 @@ namespace BlueWaterProject
|
||||
soldierObject.name = newSoldierName;
|
||||
unitController.unit.soldierList.Add(soldierObject);
|
||||
}
|
||||
unitController.transform.rotation *= unitControllerRotation;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user