예제 #1
0
 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;
 }
예제 #3
0
 public void Init(BearMechanics controller)
 {
     _controller = controller;
 }