public void SetCurrentTrackPiece(GameObject trackPiece) { currentTrackPiece = trackPiece; currentTrackPieceStatus = currentTrackPiece.GetComponent<TrackPieceStatus>(); }
void Start() { gameController = GameObject.Find("GameController").GetComponent<GameController>(); currentTrackPiece = initialTrackPiece; currentTrackPieceStatus = currentTrackPiece.GetComponent<TrackPieceStatus>(); }
void Start() { currentLifetime = deathTimer; thisStatus = GetComponent<TrackPieceStatus>(); shakeStrength = new Vector3(.25f, .1f, .25f); }