/// <summary> /// Does the actual flippin' /// </summary> public void FlipPlayerControls() { ChooseControls.PlayerControls controls = ChooseControls.controls[player]; KeyCode leftKey = controls.leftKey; controls.leftKey = controls.rightKey; controls.rightKey = leftKey; ChooseControls.UpdatePlayerControlText(player); }
private void Awake() { image = GetComponent <Image>(); chooseControls = GameObject.FindWithTag("LevelHandler").GetComponent <ChooseControls>(); }