/* * public static string GetAnimDirString(AnimDir animDir) { * switch (animDir) { * default: * case AnimDir.Down: return Localization.GetString(Localization.Key.Down); * case AnimDir.Up: return Localization.GetString(Localization.Key.Up); * case AnimDir.Left: return Localization.GetString(Localization.Key.Left); * case AnimDir.Right: return Localization.GetString(Localization.Key.Right); * case AnimDir.DownLeft: return Localization.GetString(Localization.Key.DownLeft); * case AnimDir.DownRight: return Localization.GetString(Localization.Key.DownRight); * case AnimDir.UpLeft: return Localization.GetString(Localization.Key.UpLeft); * case AnimDir.UpRight: return Localization.GetString(Localization.Key.UpRight); * } * } */ public static AnimDir GetAnimDirFromVectorLimit4Directions(Vector3 dir) { return(GetAnimDirFromAngleLimit4Directions(V_UnitAnimation.GetAngleFromVector(dir))); }
public static AnimDir GetAnimDirFromVector(Vector3 dir) { return(GetAnimDirFromAngle(V_UnitAnimation.GetAngleFromVector(dir))); }
public UnitAnim GetUnitAnim(Vector3 dir) { return(GetUnitAnim(V_UnitAnimation.GetAngleFromVector(dir))); }