Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        _checkPose3d = GetComponent <CheckPose3d>();

        //leftArm.transform.eulerAngles = new Vector3(0f, 0f, 90f);
        leftArmTargetRotation = Quaternion.Euler(0f, 0f, 90f);
        leftArmState          = 1;

        //rightArm.transform.eulerAngles = new Vector3(0f, 0f, -90f);
        rightArmTargetRotation = Quaternion.Euler(0f, 0f, -90f);
        rightArmState          = 1;

        //leftLeg.transform.eulerAngles = new Vector3(0f, 0f, 0f);
        leftLegTargetRotation = Quaternion.Euler(0f, 0f, 0f);
        leftLegState          = 1;

        //rightLeg.transform.eulerAngles = new Vector3 (0f, 0f, 0f);
        rightLegTargetRotation = Quaternion.Euler(0f, 0f, 0f);
        rightLegState          = 1;


        // create adjectives array
        adjectives    = new string[10];
        adjectives[0] = "floating";
        adjectives[1] = "salted";
        adjectives[2] = "balancing";
        adjectives[3] = "knotted";
        adjectives[4] = "secret";
        adjectives[5] = "fish";
        adjectives[6] = "freedom";
        adjectives[7] = "half";
        adjectives[8] = "happy";
        adjectives[9] = "frog";

        // create nouns array
        nouns    = new string[10];
        nouns[0] = "baby";
        nouns[1] = "tree";
        nouns[2] = "pretzel";
        nouns[3] = "stick";
        nouns[4] = "stand";
        nouns[5] = "child";
        nouns[6] = "corpse";
        nouns[7] = "moon";
        nouns[8] = "eagle";
        nouns[9] = "camel";

        countDown = maxCountDown;
        timeUp    = false;

        GenerateRandomPose();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        _checkPose3d = GetComponent<CheckPose3d>();

        //leftArm.transform.eulerAngles = new Vector3(0f, 0f, 90f);
        leftArmTargetRotation = Quaternion.Euler(0f, 0f, 90f);
        leftArmState = 1;

        //rightArm.transform.eulerAngles = new Vector3(0f, 0f, -90f);
        rightArmTargetRotation = Quaternion.Euler(0f, 0f, -90f);
        rightArmState = 1;

        //leftLeg.transform.eulerAngles = new Vector3(0f, 0f, 0f);
        leftLegTargetRotation = Quaternion.Euler(0f, 0f, 0f);
        leftLegState = 1;

        //rightLeg.transform.eulerAngles = new Vector3 (0f, 0f, 0f);
        rightLegTargetRotation = Quaternion.Euler(0f, 0f, 0f);
        rightLegState = 1;

        // create adjectives array
        adjectives = new string[10];
        adjectives[0] = "floating";
        adjectives[1] = "salted";
        adjectives[2] = "balancing";
        adjectives[3] = "knotted";
        adjectives[4] = "secret";
        adjectives[5] = "fish";
        adjectives[6] = "freedom";
        adjectives[7] = "half";
        adjectives[8] = "happy";
        adjectives[9] = "frog";

        // create nouns array
        nouns = new string[10];
        nouns[0] = "baby";
        nouns[1] = "tree";
        nouns[2] = "pretzel";
        nouns[3] = "stick";
        nouns[4] = "stand";
        nouns[5] = "child";
        nouns[6] = "corpse";
        nouns[7] = "moon";
        nouns[8] = "eagle";
        nouns[9] = "camel";

        countDown = maxCountDown;
        timeUp = false;

        GenerateRandomPose();
    }