protected override void OnDraw() { Width = EditorUtils.IntFieldWithLabel("Map Width", Width); Depth = EditorUtils.IntFieldWithLabel("Map Depth", Depth); NodeSize = EditorUtils.IntFieldWithLabel("Node Size", NodeSize); MaxSlope = EditorUtils.FloatFieldWithLabel("Max Slope", MaxSlope); Center = EditorGUILayout.Vector3Field("Map Center", Center); }
protected override void OnDraw() { UpdatePosition = EditorUtils.BoolFieldWithLabel("UpdatePosition", UpdatePosition); UpdateRotation = EditorUtils.BoolFieldWithLabel("UpdateRotation", UpdateRotation); CanMove = EditorUtils.BoolFieldWithLabel("CanMove", CanMove); IsStopped = EditorUtils.BoolFieldWithLabel("IsStopped", IsStopped); SlowWhenNotFacingTarget = EditorUtils.BoolFieldWithLabel("SlowWhenNotFacingTarget", SlowWhenNotFacingTarget); RotationSpeed = EditorUtils.FloatFieldWithLabel("RotationSpeed", RotationSpeed); MaxAcceleration = EditorUtils.FloatFieldWithLabel("MaxAcceleration", MaxAcceleration); MaxSpeed = EditorUtils.FloatFieldWithLabel("MaxSpeed", MaxSpeed); LookAheadDis = EditorUtils.FloatFieldWithLabel("LookAheadDis", LookAheadDis); EndReachedDis = EditorUtils.FloatFieldWithLabel("EndReachedDis", EndReachedDis); SlowDownDis = EditorUtils.FloatFieldWithLabel("SlowDownDis", SlowDownDis); }