Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        shop           = GetComponent <PlayerShop> ();
        playerBody     = GetComponent <Rigidbody2D> ();
        networkInfo    = GetComponent <NetSetup> ();
        carryControl   = GetComponent <CarryControl> ();
        anim           = GetComponent <Animator> ();
        gravityInitial = playerBody.gravityScale;
        wallCheck      = GetComponentInChildren <WallCheck> ();
        baitManager    = GetComponent <BaitManager> ();
        string[] controllers = Input.GetJoystickNames();
        foreach (string s in controllers)
        {
            Debug.Log(s);
        }
        if (controllers.Length > 0)
        {
            controllerEnabled = true;
        }
        input = new GeneralInput();
        input.controllerEnabled = controllerEnabled;
//
//		superJumpModeText = GameObject.Find ("PowerJumpMode").GetComponent<Text> ();
    }
Esempio n. 2
0
	// Use this for initialization
	void Start () {
		shop = GetComponent<PlayerShop> ();
		playerBody = GetComponent<Rigidbody2D> ();
		networkInfo = GetComponent<NetSetup> ();
		carryControl = GetComponent<CarryControl> ();
		anim = GetComponent<Animator> ();
		gravityInitial = playerBody.gravityScale;
		wallCheck = GetComponentInChildren<WallCheck> ();
		baitManager = GetComponent<BaitManager> ();
		string[] controllers = Input.GetJoystickNames ();
		foreach (string s in controllers) {
			Debug.Log (s);
		}
		if (controllers.Length > 0) {
			controllerEnabled = true;
		}
		input = new GeneralInput ();
		input.controllerEnabled = controllerEnabled;
//
//		superJumpModeText = GameObject.Find ("PowerJumpMode").GetComponent<Text> ();
	}
Esempio n. 3
0
	// Use this for initialization
	void Start () {
//		animationScript = GetComponent<PlayerAnimation> ();
		netInfo = GetComponent<NetSetup>();
	}
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
//		animationScript = GetComponent<PlayerAnimation> ();
        netInfo = GetComponent <NetSetup>();
    }