Пример #1
0
 /// <summary>
 ///
 /// </summary>
 internal static void DisposeStates()
 {
     Default.Dispose();
     Readonly.Dispose();
     None.Dispose();
     LightMark.Dispose();
     LightPass.Dispose();
     Sky.Dispose();
 }
Пример #2
0
    public void MarkEnemy(Enemy enemy)
    {
        if (oldMarkedEnemies.Contains(enemy))
        {
            return;
        }

        markedEnemies.Add(enemy);

        GameObject mark = Instantiate(markPrefab, enemy.transform.position, Quaternion.identity);

        LightMark lightMark = mark.GetComponent <LightMark>();

        lightMark.currentEnemy = enemy;
        marks.Add(lightMark);
    }