void Awake() { movement = GetComponent<LightcycleMovement>(); movement.onTurnLeft += onLightcycleTurnLeft; movement.onTurnRight += onLightcycleTurnRight; newSegment(); }
// Use this for initialization void Start() { cycle = GetComponent<LightcycleMovement>(); }