123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- using UnityEngine;
- using Pathfinding.Util;
- namespace Pathfinding {
-
- public partial class AIPath {
-
-
-
-
- [System.Obsolete("When unifying the interfaces for different movement scripts, this property has been renamed to reachedEndOfPath. [AstarUpgradable: 'TargetReached' -> 'reachedEndOfPath']")]
- public bool TargetReached { get { return reachedEndOfPath; } }
-
-
-
-
- [System.Obsolete("This field has been renamed to #rotationSpeed and is now in degrees per second instead of a damping factor")]
- public float turningSpeed { get { return rotationSpeed/90; } set { rotationSpeed = value*90; } }
-
-
-
-
- [System.Obsolete("This member has been deprecated. Use 'maxSpeed' instead. [AstarUpgradable: 'speed' -> 'maxSpeed']")]
- public float speed { get { return maxSpeed; } set { maxSpeed = value; } }
-
-
-
-
- [System.Obsolete("Only exists for compatibility reasons. Use desiredVelocity or steeringTarget instead.")]
- public Vector3 targetDirection {
- get {
- return (steeringTarget - tr.position).normalized;
- }
- }
-
-
-
-
- [System.Obsolete("This method no longer calculates the velocity. Use the desiredVelocity property instead")]
- public Vector3 CalculateVelocity (Vector3 position) {
- return desiredVelocity;
- }
- }
-
- public partial class RichAI {
-
-
-
-
-
-
- [System.Obsolete("Use SearchPath instead. [AstarUpgradable: 'UpdatePath' -> 'SearchPath']")]
- public void UpdatePath () {
- SearchPath();
- }
-
-
-
-
-
- [System.Obsolete("Use velocity instead (lowercase 'v'). [AstarUpgradable: 'Velocity' -> 'velocity']")]
- public Vector3 Velocity { get { return velocity; } }
-
-
-
-
-
- [System.Obsolete("Use steeringTarget instead. [AstarUpgradable: 'NextWaypoint' -> 'steeringTarget']")]
- public Vector3 NextWaypoint { get { return steeringTarget; } }
-
-
-
-
- [System.Obsolete("Use Vector3.Distance(transform.position, ai.steeringTarget) instead.")]
- public float DistanceToNextWaypoint { get { return distanceToSteeringTarget; } }
-
- [System.Obsolete("Use canSearch instead. [AstarUpgradable: 'repeatedlySearchPaths' -> 'canSearch']")]
- public bool repeatedlySearchPaths { get { return canSearch; } set { canSearch = value; } }
-
-
-
-
- [System.Obsolete("When unifying the interfaces for different movement scripts, this property has been renamed to reachedEndOfPath (lowercase t). [AstarUpgradable: 'TargetReached' -> 'reachedEndOfPath']")]
- public bool TargetReached { get { return reachedEndOfPath; } }
-
-
-
-
- [System.Obsolete("Use pathPending instead (lowercase 'p'). [AstarUpgradable: 'PathPending' -> 'pathPending']")]
- public bool PathPending { get { return pathPending; } }
-
-
-
-
- [System.Obsolete("Use approachingPartEndpoint (lowercase 'a') instead")]
- public bool ApproachingPartEndpoint { get { return approachingPartEndpoint; } }
-
-
-
-
- [System.Obsolete("Use approachingPathEndpoint (lowercase 'a') instead")]
- public bool ApproachingPathEndpoint { get { return approachingPathEndpoint; } }
-
-
-
-
- [System.Obsolete("This property has been renamed to 'traversingOffMeshLink'. [AstarUpgradable: 'TraversingSpecial' -> 'traversingOffMeshLink']")]
- public bool TraversingSpecial { get { return traversingOffMeshLink; } }
-
-
-
-
- [System.Obsolete("This property has been renamed to steeringTarget")]
- public Vector3 TargetPoint { get { return steeringTarget; } }
- [UnityEngine.Serialization.FormerlySerializedAs("anim")][SerializeField][HideInInspector]
- Animation animCompatibility;
-
-
-
-
- [System.Obsolete("Use the onTraverseOffMeshLink event or the ... component instead. Setting this value will add a ... component")]
- public Animation anim {
- get {
- var setter = GetComponent<Pathfinding.Examples.AnimationLinkTraverser>();
- return setter != null ? setter.anim : null;
- }
- set {
- animCompatibility = null;
- var setter = GetComponent<Pathfinding.Examples.AnimationLinkTraverser>();
- if (setter == null) setter = gameObject.AddComponent<Pathfinding.Examples.AnimationLinkTraverser>();
- setter.anim = value;
- }
- }
- }
- }
|