This commit is contained in:
magn9775
2024-04-22 10:06:47 +02:00
parent f0ad8b7436
commit d9b73bd148
21 changed files with 1610 additions and 276 deletions

View File

@@ -19,8 +19,12 @@ public class NPCimproved : MonoBehaviour
{
if (walking)
{
npcPrefab.transform.position += new Vector3(00,0,0.005f);
//npcPrefab.transform.position += new Vector3(0,0,0.005f);
npcPrefab.transform.position += transform.forward * Time.deltaTime;
}
//animator.SetBool("IsTurning", false);
}
@@ -34,10 +38,12 @@ public class NPCimproved : MonoBehaviour
animator.runtimeAnimatorController = Resources.Load("m_Controller") as RuntimeAnimatorController;
walking = false;
}
}
if (col.gameObject.tag == "Wall")
{
npcPrefab.transform.eulerAngles += new Vector3(0,180,0);
}
}
}