// Use this for initialization void Start() { _posemanager = GameObject.FindGameObjectWithTag("Posemanager").GetComponent <PoseManager>(); _PoseCanvas = GameObject.Find("Pose_canvas").GetComponent <Canvas>(); _Happy = GameObject.Find("Pose_Happy").GetComponent <Image>(); _happy = GameObject.Find("Pose_Happy").GetComponent <Pose_Happy>(); _audioSource = GetComponent <AudioSource>(); _View = GameObject.Find("ScoreCanvas").GetComponent <Canvas>(); _view = _View.GetComponent <ScoreView>(); }
// Use this for initialization void Start() { _pose_manager = GameObject.FindGameObjectWithTag("Posemanager").GetComponent <PoseManager>(); _pose_happy = GameObject.Find("Pose_Happy").GetComponent <Pose_Happy>(); _Chance = GameObject.Find("Chance").GetComponent <Image>(); r = _Chance.GetComponent <Image>().color.r; g = _Chance.GetComponent <Image>().color.g; b = _Chance.GetComponent <Image>().color.b; alpha = _Chance.GetComponent <Image>().color.a; _rShoulder = GameObject.Find("Player_RightHand1"); _lCrotch = GameObject.Find("Player_LeftLeg1"); }