Script for checking whether game is paused or still going?

Can anybody help me figure out how to know whether the game is paused or not. Thanks.

Add the following code to your GameManger script

public static bool GameIsPaused { get { return Time.deltaTime == 0f; }}

And then access it as

if (GameManager.GameIsPaused)
{
 //execute some code
}