// Use this for initialization public virtual void Start() { motionNumbers = new float[4]; motionNumbers[0] = 0; motionNumbers[1] = 0; motionNumbers[2] = 1; motionNumbers[3] = 1; canvasGroup = GetComponent <CanvasGroup>(); rt = ECCommons.SetComponent <RectTransform>(gameObject); events = ECCommons.SetComponent <ECUIEvent>(gameObject); if (childIndividual) { children.AddRange(GetComponentsInChildren <ECUIController>()); children.RemoveAt(0); if (children.Count < 1) { childIndividual = false; } } if (colorMask) { graphics.AddRange(GetComponentsInChildren <Graphic>()); } else if (GetComponent <Graphic>()) { graphics.Add(GetComponent <Graphic>()); } Invoke("Initialize", Time.deltaTime * iniDelay); }
// Use this for initialization void Start() { GetFile(); view = ECCommons.SetComponent <NetworkView>(gameObject); }