/*void OnGUI() * { * if (!Application.isPlaying) // && this.updateValues) * { * SetRelativeSize(); * SetRelativePosition(); * this.updateValues = false; * } * }*/ void SetRelativeData() { if (!useRelativeData) { return; } oCamera = Camera.main.GetComponent <OrthographicCameraSetup>(); SetRelativeSize(); SetRelativePosition(); }
/*void OnGUI() { if (!Application.isPlaying) // && this.updateValues) { SetRelativeSize(); SetRelativePosition(); this.updateValues = false; } }*/ void SetRelativeData() { if (!useRelativeData) return; oCamera = Camera.main.GetComponent<OrthographicCameraSetup>(); SetRelativeSize(); SetRelativePosition(); }