Пример #1
0
    /// <summary> Called when object/script first activates </summary>
    void Awake()
    {
        if (instance != null)
        {
            throw new UnityException("Singleton instance already exists");
        }
        instance = this;

        EnemyGenerator.ReadCSV();
    }