Esempio n. 1
0
 private void Awake()
 {
     playerAttacker  = GetComponent <PlayerAttacker>();
     playerInventory = GetComponent <PlayerInventory>();
     playerManager   = GetComponent <PlayerManager>();
     uiManager       = FindObjectOfType <UIManager>();
     cameraHandler   = FindObjectOfType <CameraHandler>();
 }
Esempio n. 2
0
 private void Awake()
 {
     singleton       = this;
     myTransform     = transform;
     defaultPosition = cameraTransform.localPosition.z;
     ignoreLayers    = ~(1 << 8 | 1 << 9 | 1 << 10);
     inputHandler    = FindObjectOfType <InputHandler>();
 }
Esempio n. 3
0
 private void Awake()
 {
     cameraHandler  = CameraHandler.singleton;
     playerAttacker = GetComponent <PlayerAttacker>();
 }