예제 #1
0
    // Use this for initialization
    void Start()
    {
        _posemanager = GameObject.FindGameObjectWithTag("Posemanager").GetComponent <PoseManager>();
        _PoseCanvas  = GameObject.Find("Pose_canvas").GetComponent <Canvas>();
        _AlphaH      = GameObject.Find("Pose_H").GetComponent <Image>();
        _alphaH      = GameObject.Find("Pose_H").GetComponent <Pose_H>();

        _audioSource = GetComponent <AudioSource>();
        _View        = GameObject.Find("ScoreCanvas").GetComponent <Canvas>();
        _view        = _View.GetComponent <ScoreView>();
    }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        _pose_manager = GameObject.FindGameObjectWithTag("Posemanager").GetComponent <PoseManager>();
        _pose_h       = GameObject.Find("Pose_H").GetComponent <Pose_H>();
        _rogo_h       = GameObject.Find("Rogo_H").GetComponent <Image>();
        rogo_r        = _rogo_h.GetComponent <Image>().color.r;
        rogo_g        = _rogo_h.GetComponent <Image>().color.g;
        rogo_b        = _rogo_h.GetComponent <Image>().color.b;
        rogo_a        = _rogo_h.GetComponent <Image>().color.a;

        _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");
    }