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"
        });
    }
Exemplo n.º 2
0
 public void OnEnable()
 => SegmentStreamer.Subscribe(this.gameObject, OnWorldSegmentEvent, SubscriptionMode.Self);