Beispiel #1
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.E) && QuestCanvas.gameObject.activeInHierarchy)
        {
            Close();
        }

        Vector3 directionToPlayer = AiBlackboard.Instance.PlayerPosition - transform_.position;

        anim_.UpdateAnimation(directionToPlayer);
    }
Beispiel #2
0
 void Update()
 {
     anim_.UpdateAnimation(Vector3.zero);
 }