public static void ResetPlayerStats() { singletonInstance.playerObject.transform.position = singletonInstance.offscreenPosition; string param = PlayerController.GetSizeParameter(); SetAnimationParameter(param, false); ResetPlayerSpeed(); ResetSizeParameter(); WeaponsController.ResetShellSpeed(); singletonInstance.gameObject.GetComponent <PlayerController>().enabled = false; singletonInstance.gameObject.GetComponent <WeaponsController>().enabled = false; singletonInstance.playerObject.GetComponent <Rigidbody2D>().velocity = Vector2.zero; singletonInstance.playerObject.GetComponent <Animator>().enabled = false; }