Пример #1
0
    public void DestroyEnemy()
    {
        GameObject blow = Instantiate(blowPrefab, transform.position, transform.rotation);

        blow.transform.localScale = gameObject.transform.localScale;
        gameController.AddExp(expForKill);
        Destroy(gameObject, 0);
        Destroy(blow, 0.5f);
    }