void Awake() { // Set the name to allow UnitySendMessage to find this object. name = "AdColony"; // Make sure this GameObject persists across scenes DontDestroyOnLoad(transform.gameObject); }