Version: 2017.3
public static bool isPlaying ;

Descripción

Returns true when in any kind of player is active.(Read Only).

Devuelve true en el editor de Unity cuando se encuentra en play mode.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { if (Application.isPlaying) print("In player or playmode"); } }