Ejemplo n.º 1
0
        public override void Run()
        {
            SelectManager selector = target.GetComponent <SelectManager>();

            if (selector != null)
            {
                selector.dangers.dangerCount = newDanger;
            }
        }
Ejemplo n.º 2
0
 void Start()
 {
     isEditor = false;
     foreach (Transform child in transform)
     {
         SelectManager selectManager = child.GetComponent <SelectManager>();
         if (selectManager != null)
         {
             selectList.Add(selectManager);
         }
     }
 }