// Use this for initialization void Start() { currentSelect = this.GetComponent <selection>(); segment = btSize; posMoveBt = new Rect(leftMargin, topMargin, btSize, btSize); posSummonBt = new Rect(leftMargin, topMargin + segment, btSize, btSize); posAttackBt = new Rect(leftMargin, topMargin + segment * 2, btSize, btSize); posSkillBt = new Rect(leftMargin, topMargin + segment * 3, btSize, btSize); posDefenseBt = new Rect(leftMargin, topMargin + segment * 4, btSize, btSize); posEndTurnBt = new Rect(leftMargin, topMargin + segment * 5, btSize, btSize); MainGuiShow = false; mousePos = new Vector2(); mainStyle.font = MainFont; mainStyle.normal.textColor = Color.white; mainStyle.fontSize = 20; subStyle = new GUIStyle(mainStyle); subStyle.fontSize = 16; subStyle.normal.textColor = new Color(.8f, .8f, .8f, 1.0f); subStyle.onHover.textColor = Color.white; players = this.GetComponent <RoundCounter>(); numIcon = this.GetComponent <NumIconVault>(); infoUI = this.GetComponent <InfoUI>(); chessUI = this.GetComponent <MainInfoUI>(); InSecondTutor = false; init = GameObject.Find("InitStage").transform.GetComponent <InitStage>(); }
// Use this for initialization void Start() { currentSelect = this.GetComponent<selection>(); segment = btSize; posMoveBt =new Rect(leftMargin,topMargin,btSize,btSize); posSummonBt = new Rect(leftMargin,topMargin+segment,btSize,btSize); posAttackBt = new Rect(leftMargin,topMargin+segment*2,btSize,btSize); posSkillBt = new Rect(leftMargin,topMargin+segment*3,btSize,btSize); posDefenseBt = new Rect(leftMargin,topMargin+segment*4,btSize,btSize); posEndTurnBt = new Rect(leftMargin,topMargin+segment*5,btSize,btSize); MainGuiShow = false; mousePos = new Vector2(); mainStyle.font = MainFont; mainStyle.normal.textColor = Color.white; mainStyle.fontSize = 20; subStyle = new GUIStyle(mainStyle); subStyle.fontSize = 16; subStyle.normal.textColor = new Color(.8f,.8f,.8f,1.0f); subStyle.onHover.textColor = Color.white; players = this.GetComponent<RoundCounter>(); numIcon = this.GetComponent<NumIconVault>(); infoUI = this.GetComponent<InfoUI>(); chessUI = this.GetComponent<MainInfoUI>(); InSecondTutor = false; init = GameObject.Find("InitStage").transform.GetComponent<InitStage>(); }