application isPlaying unity

C#
using UnityEngine;class Example : MonoBehaviour
{
    void Start()
    {
        if (Application.isPlaying)
        {
            print("In player or playmode");
        }
    }
}

Source

Also in C#: