Quantcast
Channel: Answers by "kkxzd"
Viewing all articles
Browse latest Browse all 4

Answer by kkxzd

$
0
0
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 all articles
Browse latest Browse all 4

Latest Images

Trending Articles



Latest Images