void changePath()
 {
     if (Input.GetMouseButton(1))
     {
         m_Path = boss_Path;
     }
 }
Exemple #2
0
    public static void ResetInNearestPath(Transform t, Cinemachine.CinemachinePathBase p)
    {
        float pathPosition = p.FindClosestPoint(t.position, 0, -1, 10);

        t.position = p.EvaluatePosition(pathPosition);
    }