public void OnEnable() { _input ??= new PlayerControl(); _input.Player.SetCallbacks(this); _input.Player.Enable(); _autoLevel = new AutoLevel(8, 0.1f, 0.001f); segmentStreamer.Subscribe(this.gameObject, OnWorldSegmentEvent, SubscriptionMode.Selective, new List <string>() { "Bird" }); }
public void OnEnable() => SegmentStreamer.Subscribe(this.gameObject, OnWorldSegmentEvent, SubscriptionMode.Self);