Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        talkLib        = TalkLib.GetTalkLib();
        move_lock      = false;
        camera         = GameObject.Find("Main Camera").GetComponent <Camera>();
        direction_mode = 0;
        sight          = GameObject.Find("Sight");

        rotate_buffer   = 5;
        isOnGround      = true;
        studentRb       = gameObject.GetComponent <Rigidbody>();
        studentAnim     = gameObject.GetComponent <Animator>();
        directionFinder = gameObject.GetComponent <DirectionFinder>();
        forward         = directionFinder.FindForward(direction_mode);
        UpdateDirection();
        gameObject.transform.position = new Vector3(PlayerPrefs.GetFloat("position_x"), PlayerPrefs.GetFloat("position_y"), PlayerPrefs.GetFloat("position_z"));
        //gameObject.transform.eulerAngles = new Vector3(PlayerPrefs.GetFloat("euler_x"), PlayerPrefs.GetFloat("euler_y"), PlayerPrefs.GetFloat("euler_z"));
    }
Exemplo n.º 2
0
 public virtual void GetSentences()
 {
     sentences = TalkLib.GetTalkLib().GetTalkContent(talk_name);
 }