Example #1
0
    public void Awake()
    {
        if (Instance != null && this != Instance)
        {
            //There is already a copy of this script running
            //Destroy(gameObject);
            return;
        }

        Instance = this;
    }