예제 #1
0
 // Use this for initialization
 private void SetUp()
 {
     foreach (var d in stageData.Desployeds)
     {
         var obj       = Instantiate(Resources.Load(Const.DesployObjectPath(d.Type))) as GameObject;
         var component = obj.GetComponent <DesployableObject>();
         component.Init(d);
         obj.transform.SetParent(transform);
     }
 }