Quantcast
Viewing latest article 2
Browse Latest Browse All 4

Answer by kkxzd

Really depends on how you have everything setup, but assuming you can make your list and map static members of your tower script: public static List test_list = new List() {1, 2}; You can then update the value from any other script just referencing the tower script, so you could run that on the OnDestroy method: OnDestroy() { TowerScript.test_list.Add(3); } Just modifying the list here as you didn't provide any specific code, but it should be easy to modify to fit your needs.

Viewing latest article 2
Browse Latest Browse All 4

Trending Articles