Ejemplo n.º 1
0
 public void Pause(bool pause)
 {
     isPaused       = pause;
     Time.timeScale = isPaused ? 0f : 1f;
     Pause_H.SetActive(isPaused);
     Hint_H.SetActive(isPaused);
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        _L_Shoulder = GameObject.Find("Player_LeftHand1");
        _L_Elbow    = GameObject.Find("Player_LeftHand2");
        _L_HipJoint = GameObject.Find("Player_LeftLeg1");
        _L_Knee     = GameObject.Find("Player_LeftLeg2");
        _R_Shoulder = GameObject.Find("Player_RightHand1");
        _R_Elbow    = GameObject.Find("Player_RightHand2");
        _R_HipJoint = GameObject.Find("Player_RightLeg1");
        _R_Knee     = GameObject.Find("Player_RightLeg2");

        _Pose = PoseState.None;

        _RArm = false;
        _LHip = false;

        _score   = GetComponent <ScoreAdd>();
        _chance  = GameObject.Find("Chance").GetComponent <Chance>();
        _scores  = GameObject.Find("Score").GetComponent <Score>();
        _pause_h = GameObject.Find("Pause_H").GetComponent <Pause_H>();
    }