void Start() { LastJumpTime = 0; LastJumpButtonTime = 0; if (!Body) { Body = GetComponentInChildren <Rigidbody2D>(); } Rythm = FindObjectOfType <RythmController>(); Rythm.OnAfterBeat += OnAfterBeat; Rythm.OnAfterPause += OnAfterPause; Game = FindObjectOfType <GameManager>(); BeatFeedback = FindObjectOfType <BeatFeedback>(); }
void Awake() { s = this; }