public KartState(GameObject _kart, KartState _lastState = null) { kart = _kart; lastState = _lastState; name = "nameless state"; kb = kart.GetComponent<KartBehaviour>(); }
public KartState(GameObject _kart, KartState _lastState = null) { kart = _kart; lastState = _lastState; name = "nameless state"; kb = kart.GetComponent <KartBehaviour>(); }
void Start() { track = GameObject.FindGameObjectsWithTag("track")[0].transform.root.gameObject; trackInformation = track.GetComponent <TrackInformation>(); camera = transform.Find("Main Camera").gameObject; KB = gameObject.GetComponent <KartBehaviour>(); }
void Start() { track = GameObject.FindGameObjectsWithTag("track")[0].transform.root.gameObject; trackInformation = track.GetComponent<TrackInformation>(); camera = transform.Find("Main Camera").gameObject; KB = gameObject.GetComponent<KartBehaviour>(); }
// Update is called once per frame void Update () { if (KB == null) KB = PlayerNetwork.localPlayer.GetComponent<KartBehaviour>(); gameObject.transform.localRotation = Quaternion.Euler(new Vector3(0, 0, KB.steeringWheel*45)); //new Vector3(0, 0, KB.steeringWheel); }
// Update is called once per frame void Update() { if (KB == null) { KB = PlayerNetwork.localPlayer.GetComponent <KartBehaviour>(); } gameObject.transform.localRotation = Quaternion.Euler(new Vector3(0, 0, KB.steeringWheel * 45)); //new Vector3(0, 0, KB.steeringWheel); }
// Use this for initialization void Start() { debugMode = true; kartScript = transform.GetComponent<KartBehaviour>(); }
public void Start () { KB = Kart.GetComponent<KartBehaviour>(); effectTimerCurrent = 0.0f; ApplyEffect(); }
public void Start() { KB = GetComponent<KartBehaviour>(); Update(); }
public void Start() { KB = Kart.GetComponent <KartBehaviour>(); effectTimerCurrent = 0.0f; ApplyEffect(); }
public void Start() { KB = GetComponent <KartBehaviour>(); Update(); }
// Use this for initialization void Start() { debugMode = true; kartScript = transform.GetComponent <KartBehaviour>(); }