public GameObject Create(bool isLast, MakerTransform makerTransform) { GameObject obj; if (isLast) { obj = CreateGoalMaker(makerTransform); } else { obj = CreateMaker(makerTransform); } obj.AddComponent <MakerObject>(); return(obj); }
private GameObject CreateGoalMaker(MakerTransform makerTransform) { return(Instantiate(goalMakerPrefab, makerTransform.position, makerTransform.rotation)); }