void Start() { tracker = GameObject.Find("GameManager").GetComponent<GameManager>().Tracker; scale = 3.0f; LowerRight = GameObject.Find("LowerRight"); MiddleRight = GameObject.Find("MiddleRight"); UpperRight = GameObject.Find("UpperRight"); TopRight = GameObject.Find("TopRight"); LowerFarRight = GameObject.Find("LowerFarRight"); MiddleFarRight = GameObject.Find("MiddleFarRight"); UpperFarRight = GameObject.Find("UpperFarRight"); UpperFarRight.renderer.material.color = new Color(0,0,0,0); brookeScale = UserContainer.Instance.UserDictionary[UserContainer.Instance.currentUser].BrookeScale; slope = 1.0f; //ScaleFunction(); // ResetMaxes(); }
void Start() { tracker = GameObject.Find("GameManager").GetComponent<GameManager>().Tracker; scale = 3.0f; LowerLeft = GameObject.Find("LowerLeft"); MiddleLeft = GameObject.Find("MiddleLeft"); UpperLeft = GameObject.Find("UpperLeft"); TopLeft = GameObject.Find("TopLeft"); LowerFarLeft = GameObject.Find("LowerFarLeft"); MiddleFarLeft = GameObject.Find("MiddleFarLeft"); UpperFarLeft = GameObject.Find("UpperFarLeft"); brookeScale = UserContainer.Instance.UserDictionary[UserContainer.Instance.currentUser].BrookeScale; slope = 1.0f; //ScaleFunction(); // ResetMaxes(); }
void Start() { tracker = new VolumeTracker(UserContainer.Instance.UserDictionary[UserContainer.Instance.currentUser].UlnaLength); volumes = new Volumes(); GameObject[] backs = GameObject.FindGameObjectsWithTag("Back"); foreach (GameObject back in backs) { back.transform.localPosition += new Vector3(0, 0.05f, 0); } timer = 0.0f; nativeVerticalResolution = 1080.0f; scaledResolutionWidth = nativeVerticalResolution / Screen.height * Screen.width; GUIon = true; if (UserContainer.Instance.UserDictionary[UserContainer.Instance.currentUser].Gender) { character = (GameObject)Instantiate(Resources.Load<GameObject>("Male")); } else { character = (GameObject)Instantiate(Resources.Load<GameObject>("Female")); } rightHand = GameObject.Find("RightHand").GetComponent<RightHandBehaviour>(); leftHand = GameObject.Find("LeftHand").GetComponent<LeftHandBehaviour>(); generator = GameObject.Find("GemGenerator").GetComponent<GemGenerator>(); GameControl.Instance.ResetGemCount(); }