// Use this for initialization void Awake() { cam = GameObject.Find("Main Camera").GetComponent <Camera>(); this.GetComponent <Canvas>().worldCamera = cam; bounds = GameObject.Find("Game Master").GetComponent <ObjBoundary>(); message = this.transform.GetChild(0).GetComponent <Text>(); this.transform.position = new Vector3(0, 0 + (bounds.getScreenHeight() / 3), 1); }
void SetSize() { this.transform.localScale = new Vector3(bounds.getScreenWidth(), bounds.getScreenHeight(), 1); this.transform.position = new Vector3(0, 0, 1); }