//Use previous caller if no PlayerInput is specified //(example: pressing an UI button resumes the game) public void FlipPauseState() { if (cPlayerCore != null) { cPlayerCore.EnableControls(!FlipPauseState(cPlayerCore)); } }
//Use previous caller if no PlayerInput is specified //(example: pressing an UI button resumes the game) public void FlipPauseState() { if (caller != null) { caller.EnableControls(!FlipPauseState(caller)); } }