Ejemplo n.º 1
0
 void Update()
 {
     if (gameObject.tag == "Boss")
     {
         coordYofTarget = boss.GetCoordinateWaypoint().position.y;
         SetPositionRelativeToBossXZ();
     }
     else
     {
         coordYofTarget = waypointSystem.GetCoordinateWaypoint().position.y;
         SetPositionRelativeToCharacterXZ();
     }
 }