You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
518 B
21 lines
518 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
|
|
public class ScriptChanged : MonoBehaviour |
|
{ |
|
public List<MonoBehaviour> listScript; |
|
public List<MonoBehaviour> listScriptReverse; |
|
|
|
public void Changed(bool ACTIVE) |
|
{ |
|
for (int i = 0; i < listScript.Count; i++) |
|
{ |
|
listScript[i].enabled = ACTIVE; |
|
} |
|
for (int i = 0; i < listScriptReverse.Count; i++) |
|
{ |
|
listScriptReverse[i].enabled = !ACTIVE; |
|
} |
|
} |
|
}
|
|
|