/// <summary>
 /// Initialises the input system for the input manager.
 /// </summary>
 public void InitialiseInput(GameObject mobileHUD)
 {
     joystick       = mobileHUD.GetComponent <ITouchLeftNavpadControl>();
     pauseChecker   = this.GetComponent <ICheckPaused>();
     playerMovement = this.GetComponent <IMovement>();
     Debug.Log("joystick enabled");
 }
Example #2
0
        public void InitialiseMovement()
        {
            pauseChecker = this.GetComponent <ICheckPaused>();
            playerRB     = this.GetComponent <Rigidbody2D>();

            this.shipData = this.GetComponent <StatHandler>().GetShipData();
            currentSpeed  = shipData.MaxShield;
        }
 public void InitialiseDesktop()
 {
     playerMovement   = this.GetComponent <IMovement>();
     playerWeapons    = this.GetComponent <IWeaponController>();
     pauseChecker     = this.GetComponent <ICheckPaused>();
     shipDetacher     = this.GetComponent <IShipToPlatformAction>();
     centerPosition   = new Vector2();
     centerPosition.x = Screen.width / 2;
     centerPosition.y = Screen.height / 2;
 }
Example #4
0
        /// <summary>
        /// Initialises the weapon controller.
        /// </summary>
        public void InitialiseWeaponController()
        {
            pauseChecker    = this.GetComponent <ICheckPaused>();
            loadoutPosition = LoadoutConfiguration.Forward;

            IPlayerStats shipWeaponStats = this.GetComponent <IPlayerStats>();
            ShipData     shipData        = shipWeaponStats.GetShipData();

            SetupWeapons(shipData);
        }