private void Start() { objectManipulation = GetComponent <ObjectManipulationText>(); //ItemWorld.SpawnItemWorld(new Vector3(436.0165f, -0.1f, -445.9609f), new Item { itemType = Item.ItemType.Key, amount = 1 }); //Dohvati roditelja. Služi za prijenos objekta. Razmak između igrača i objekta prilikom premještanja trenutniRoditelj = GameObject.Find("FPC_ObjectHolder"); trenutniRoditeljManevriranje = trenutniRoditelj.GetComponent <Transform>(); #region Cylinders GameObject c1 = GameObject.Find("Cylinder_1"); cylinder_1 = c1.GetComponent <Cylinder>(); GameObject c2 = GameObject.Find("Cylinder_2"); cylinder_2 = c2.GetComponent <Cylinder>(); GameObject c3 = GameObject.Find("Cylinder_3"); cylinder_3 = c3.GetComponent <Cylinder>(); GameObject c4 = GameObject.Find("Cylinder_4"); cylinder_4 = c4.GetComponent <Cylinder>(); GameObject c5 = GameObject.Find("Cylinder_5"); cylinder_5 = c5.GetComponent <Cylinder>(); GameObject c6 = GameObject.Find("Cylinder_6"); cylinder_6 = c6.GetComponent <Cylinder>(); #endregion //PlayerPrefs.SetString("Rezultat","Ovo je prvi rezultat"); //PlayerPrefs.Save(); }
private void Start() { objectManipulation = GetComponent <ObjectManipulationText>(); //ItemWorld.SpawnItemWorld(new Vector3(436.0165f, -0.1f, -445.9609f), new Item { itemType = Item.ItemType.Key, amount = 1 }); //Dohvati roditelja. Služi za prijenos objekta. Razmak između igrača i objekta prilikom premještanja trenutniRoditelj = GameObject.Find("FPC_ObjectHolder"); trenutniRoditeljManevriranje = trenutniRoditelj.GetComponent <Transform>(); #region Cylinders GameObject c1 = GameObject.Find("Cylinder_Red"); cylinder_1 = c1.GetComponent <Cylinder>(); GameObject c2 = GameObject.Find("Cylinder_Orange"); cylinder_2 = c2.GetComponent <Cylinder>(); GameObject c3 = GameObject.Find("Cylinder_Blue"); cylinder_3 = c3.GetComponent <Cylinder>(); GameObject c4 = GameObject.Find("Cylinder_Green"); cylinder_4 = c4.GetComponent <Cylinder>(); #endregion }