private void Start() { gatherer = GetComponent <InformationGatherer>(); coinToss = GameObject.Find("CoinToss"); messageBox = GameObject.Find("MessageBox"); messageBox.SetActive(false); }
void Start() { ai = GameObject.FindObjectOfType <AI>(); anim = GetComponent <Animator>(); turnover = GameObject.FindObjectOfType <TurnOver>(); atri = GetComponent <CharacterAtributes>(); gather = GameObject.FindObjectOfType <InformationGatherer>(); moveChecker = GameObject.FindObjectOfType <MoveChecker>(); healthBar.maxValue = atri.health; healthBar.value = atri.health; ActionMenu = GameObject.FindObjectOfType <Menu>(); canvas = GameObject.Find("ActionMenu").GetComponentInChildren <Canvas>(); canvas.enabled = false; menu = GameObject.Find("ActionMenu").GetComponentInChildren <Dropdown>(); menu.ClearOptions(); menu.AddOptions(DropOptions1); menu.Hide(); orginalMoves = moves; ps = GetComponent <ParticleSystem>(); gameSpace = GameObject.FindObjectOfType <GameSpace>(); }