コード例 #1
0
        public GameObject Create(bool isLast, MakerTransform makerTransform)
        {
            GameObject obj;

            if (isLast)
            {
                obj = CreateGoalMaker(makerTransform);
            }
            else
            {
                obj = CreateMaker(makerTransform);
            }

            obj.AddComponent <MakerObject>();

            return(obj);
        }
コード例 #2
0
 private GameObject CreateGoalMaker(MakerTransform makerTransform)
 {
     return(Instantiate(goalMakerPrefab, makerTransform.position, makerTransform.rotation));
 }