Exemplo n.º 1
0
 public NanoobMovement(IInput nanoobInput, Transform transformToMove, NanoobSettings nanoobSettings, NanoobRaycastController nanoobRaycastController)
 {
     this.nanoobInput             = nanoobInput;
     this.transformToMove         = transformToMove;
     this.nanoobSettings          = nanoobSettings;
     this.nanoobRaycastController = nanoobRaycastController;
 }
Exemplo n.º 2
0
        private void Awake()
        {
            nanoobInput             = new ControllerInput();
            nanoobRaycastController = GetComponent <NanoobRaycastController>();
            nanoobMovement          = new NanoobMovement(nanoobInput, transform, nanoobSettings, nanoobRaycastController);
            Transform reticle = transform.Find("Reticle").transform;

            nanoobAiming = new NanoobAiming(nanoobInput, reticle, transform, this);
        }