private void Awake() { instance = this; animationQueueController = FindObjectOfType <AnimationQueueController>(); stock = FindObjectOfType <Stock>(); waste = FindObjectOfType <Waste>(); undoHolder = GameObject.FindGameObjectWithTag("UndoHolder").transform; }
private void Awake() { instance = this; stock = FindObjectOfType <Stock>(); waste = FindObjectOfType <Waste>(); animationQueueController = FindObjectOfType <AnimationQueueController>(); hintMoves = new Queue <HintMove>(); undoHolder = GameObject.FindGameObjectWithTag("UndoHolder").transform; dimScreen = FindObjectOfType <HintDimScreen>(); }
void Awake() { instance = this; UIScreens = GetComponentsInChildren <IHUD>(true); animationQueueController = FindObjectOfType <AnimationQueueController>(); for (int i = 0; i < UIScreens.Length; i++) { UIScreens[i].SetActive(true); } }
private void Start() { waste = FindObjectOfType <Waste>(); stockImage = GetComponent <Image>(); animationQueueController = FindObjectOfType <AnimationQueueController>(); stockGraphics = transform.parent.Find("Graphics"); wasteOrderList = new List <Transform>(); undoHolder = GameObject.FindGameObjectWithTag("UndoHolder").transform; refreshImage = GameObject.Find("ResetStock"); ResetState(); }
public virtual void Awake() { children = new List <Transform>(); draggableParent = GameObject.FindGameObjectWithTag("UndoHolder").transform; canvasGroup = GetComponent <CanvasGroup>(); LayoutElement layoutElement = GetComponent <LayoutElement>(); size = new Vector2(layoutElement.minWidth, layoutElement.minHeight); stock = FindObjectOfType <Stock>(); animationQueueController = FindObjectOfType <AnimationQueueController>(); lastGoodParametres = new Parametres(); ApplicationPauseWatcher.RegisterOnAppPauseCB(ForceStopDrag); }
private void Awake() { instance = this; try { cardPrefab = Resources.Load <GameObject>("CardPrefabs/CardPrefab"); tableaus = FindObjectsOfType <Tableau>(); tableaus = tableaus.OrderBy((x) => x.name).ToArray(); foundations = FindObjectsOfType <Foundation>(); foundations = foundations.OrderBy((x) => x.name).ToArray(); animationQueueController = FindObjectOfType <AnimationQueueController>(); waste = FindObjectOfType <Waste>(); stock = FindObjectOfType <Stock>(); canvasGroup = GetComponent <CanvasGroup>(); autofitCard = new AutofitCard(); } catch (System.Exception e) { Debug.LogError(e.Message); } }