public static InstantiatePrefab ( GameObject prefab, Vector3 location, Quaternion rotation ) : GameObject | ||
prefab | GameObject | |
location | Vector3 | |
rotation | Quaternion | |
return | GameObject |
public void Init() { GameObject prefab = Resources.Load("Forest") as GameObject; GameObject obj = Fancy.InstantiatePrefab(prefab, new Vector3(0, 0, 0), Quaternion.identity) as GameObject; obj.name = prefab.name; }
public void Init() { (new SetupBasicWorld()).Init(); (new SetupInventory()).Init(); (new SetupUnidee()).Init(); (new SetupPopup()).Init(); (new SetupJune()).Init(); (new SetupConversations()).Init(); (new SetupSpellbook()).Init(); GameObject prefab = Resources.Load("Camp") as GameObject; GameObject obj = Fancy.InstantiatePrefab(prefab, new Vector3(3.633766f, -0.6606301f, 17.04282f), Quaternion.identity) as GameObject; obj.name = prefab.name; givePlayerAScroll(); addEnchantments(); }