Пример #1
0
    private void Awake()
    {
        PC = FindObjectOfType <PlayerInputBroadcaster>();
        PC.Subscribe(gameObject);

        PI = GetComponent <PlayerInput>();
    }
Пример #2
0
 // Start is called before the first frame update
 private void Awake()
 {
     PC = FindObjectOfType <PlayerInputBroadcaster>();
 }