Graphics Reference
In-Depth Information
public BaseAIController AIController;
public int startHealthAmount= 50;
public BasePlayerManager myPlayerManager;
public BaseUserManager myDataManager;
public float turnTorqueHelper= 90;
public float TurnTorqueHelperMaxSpeed= 30;
public float catchUpAccelMax= 8000;
public float originalAccelMax= 5000;
public float resetTime= 4;
public LayerMask respawnLayerMask;
private BaseArmedEnemy gunControl;
private BattleController battleControl;
private int racerID;
private int myBattlePosition;
private bool isGameRunning;
private float resetTimer;
private bool canRespawn;
private bool canPlayFireSound;
public float timeBetweenFireSounds= 0.25f;
private bool isFinished;
private Vector3 respawnPoint;
private Vector3 respawnRotation;
public Material treadMaterial;
public GameObject shieldMesh;
public float respawnInvunerabilityTime= 5;
public override void Start ()
{
// we are overriding the Start function of BaseVehicle
// because we do not want to initialize from here!
// Game controller will call Init when it is ready
myBody= rigidbody;
myGO= gameObject;
myTransform= transform;
}
public override void Init ()
{
Debug.Log ("CarController_TB Init called.");
// cache the usual suspects
myBody= rigidbody;
myGO= gameObject;
myTransform= transform;
// allow respawning from the start
canRespawn=true;
Search WWH ::




Custom Search