/// <summary> /// Inverts the X axis of this player instance /// </summary> public void invertXAxis() { BearInputController _bearController = GameObject.Find("GroundPlatformer(Clone)").GetComponent <BearInputController> (); if (_bearController) { _bearController.invertX = _XAxis.isOn; } BirdController _birdController = GameObject.Find("AirDrawer(Clone)").GetComponent <BirdController> (); if (_birdController) { _birdController.invertX = _XAxis.isOn; } }
/// <summary> /// Invers the Y axis of this player instance /// </summary> public void inverYAxis() { // If the Server (Bear) then inverse Bear controls BearInputController _bearController = GameObject.Find("GroundPlatformer(Clone)").GetComponent <BearInputController> (); if (_bearController) { _bearController.invertY = _YAxis.isOn; } // If the Client (Bird) then inverse Bird controls BirdController _birdController = GameObject.Find("AirDrawer(Clone)").GetComponent <BirdController> (); if (_birdController) { _birdController.invertY = _YAxis.isOn; } }