2using System.Collections.Generic;
3using System.Runtime.Serialization;
12 [SerializeField]
private GameObject buttonImage, buttonText;
13 [SerializeField]
private GameObject QualityOutput;
29 Macro.allActiveTCD.Clear();
33 buttonImage.SetActive(
true);
34 buttonText.SetActive(
false);
35 var colorBlock = GetComponentInChildren<Button>().colors;
36 colorBlock.normalColor =
Color.clear;
37 GetComponentInChildren<Button>().colors = colorBlock;
38 Sprite body = Resources.Load<Sprite>(
"Body");
39 var bodyImg = GetComponent<Image>();
40 bodyImg.sprite = body;
41 bodyImg.color =
new Color(1f, 1f, 1f);
42 var texts = GetComponentsInChildren<Text>();
43 foreach (var item
in texts)
45 item.color =
new Color(0f, 38f / 255f, 137f / 255f);
47 if (GetComponentInChildren<Button>())
49 var button = GetComponentInChildren<Button>();
50 button.transition = Selectable.Transition.None;
51 var images = GetComponentInChildren<Button>().GetComponentsInChildren<
Image>();
52 foreach (var image
in images)
54 image.color =
new Color(0f, 38f / 255f, 137f / 255f);
67 private void OnDisable()
91 var fas = FindObjectsOfType<FinishAction>();
92 foreach (var finishAction
in fas) finishAction.StartTimer();
102 QualityOutput.SetActive(
true);
107 QualityOutput.SetActive(
false);
120 internal GameObject GetInputGood()
126 GameObject retval =
null;
139 internal List<GameObject> GetInputsBad()
144 var retlist =
new List<GameObject>();
145 foreach (var c
in connections)
148 GameObject retval =
null;
167 var allPositioner = FindObjectsOfType<PositionAction>();
168 foreach (var pa
in allPositioner)
174 public StartAction(SerializationInfo info, StreamingContext context) : base(info, context)
176 var dontcrashhack = GameObject.Find((
string) info.GetValue(
"name", typeof(
string)));
177 var thiss = dontcrashhack.AddComponent<
StartAction>();
179 (List<ClassTypeReference>) info.GetValue(
"acceptInputTypes", typeof(List<ClassTypeReference>));
180 thiss.inIDs = (Dictionary<string, GameObject>) info.GetValue(
"inIDs", typeof(Dictionary<string, GameObject>));
181 thiss.outIDs = (Dictionary<string, GameObject>) info.GetValue(
"outIDs", typeof(Dictionary<string, GameObject>));
182 thiss.transform.localPosition = (Vector3) info.GetValue(
"localPos", typeof(Vector3));
System.Drawing.Image Image
void TriggerOutput(string id)
List< GameObject > inPuts
List< GameObject > outPuts
List< ClassTypeReference > acceptInputTypes
Connection[] GetConnectionsByEndPointId(string id)
Connection GetConnectionByEndPointId(string id)
ActionObject GetActionByInOut(string id)
static Controller Instance
static LevelEditorOnLoaded instance
void HotFixForStartWithMoreStartActions()
static void cacheAllTCD()
void HideQualityConnections()
void ShowQualityConnections()
StartAction(SerializationInfo info, StreamingContext context)