public CourseCorrection(GameObject gameObject, float radiusOffset) { this.gameObject = gameObject; this.origin = gameObject.GetComponent <Rigidbody>().transform.position; this.radiusOffset = radiusOffset; this.avoidanceType = AvoidanceType.Unknown; this.vehicleType = Vehicle.Type.None; this.obstacleType = Obstacle.Type.None; this.weaponType = Weapon.Type.None; }
public Vehicle(Vehicle.Type type, Vehicle.Status status, int hp) { this.hitPoints = hp; this.type = type; this.status = status; }