void SetupPlayerJump() { if (GetComponent <TwoDTools.PlayerJump>() == null) { gameObject.AddComponent <TwoDTools.PlayerJump>(); } playerJump = GetComponent <TwoDTools.PlayerJump>(); }
// Used for unit testing #if UNITY_EDITOR public void SetPlayerJump(TwoDTools.PlayerJump playerJump) { this.playerJump = playerJump; }