41 lines
575 B
C#
41 lines
575 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class Accumulator : IElecticEnergySource {
|
|
public float voltage = 12.0f;
|
|
public float maxPower = 520.0f;
|
|
|
|
public override float Voltage {
|
|
get {
|
|
return voltage;
|
|
}
|
|
}
|
|
|
|
public override float MaxPower {
|
|
get {
|
|
return maxPower;
|
|
}
|
|
}
|
|
public override string Name {
|
|
get {
|
|
return "Accumulator";
|
|
}
|
|
}
|
|
|
|
public override string ShortDescription {
|
|
get {
|
|
return "Accumulator";
|
|
}
|
|
}
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|