示例#1
0
    private void Awake()
    {
        battleSM = new BattleSM();

        if (_instance != null && _instance != this)
        {
            Destroy(this.gameObject);
        }
        else
        {
            _instance = this;
        }
    }