void Start() { _playerCharacter = FindObjectOfType <PlayerCharacter>(); _playerPlane = FindObjectOfType <PlayerPlane>(); _bearPlaneStateManager = FindObjectOfType <BearPlaneStateManager>(); _bearMechanics = FindObjectOfType <BearMechanics>(); }
void Awake() { Instance = this; _planeMechanics = GetComponent <PlayerPlane>(); _bearMechanics = GetComponent <BearMechanics>(); _platformerCharacter = GetComponent <PlayerCharacter>(); _rigidbody2D = GetComponent <Rigidbody2D>(); _energy = 1; _health = maxHealth; }
public void Init(BearMechanics controller) { _controller = controller; }