// 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() { cFX = transform.GetComponent <CommonFX>(); rUI = transform.GetComponent <RoundUI>(); infoUI = transform.GetComponent <MainInfoUI>(); unDeads = new List <DeathUI>(); }
// Use this for initialization void Start() { cFX = transform.GetComponent<CommonFX>(); rUI = transform.GetComponent<RoundUI>(); infoUI = transform.GetComponent<MainInfoUI>(); unDeads = new List<DeathUI>(); }
// Use this for initialization void Start() { mUI = transform.GetComponent <MainUI>(); sUI = transform.GetComponent <DamageSlidingUI>(); fb = transform.GetComponent <FightBack>(); chessUI = transform.GetComponent <MainInfoUI>(); cFX = transform.GetComponent <CommonFX>(); currentSel = transform.GetComponent <selection>(); }
// Use this for initialization void Start() { roundCounter = 1; playerA = GameObject.Find("pSummonerA").transform; playerB = GameObject.Find("pSummonerB").transform; AllChesses = new List <Transform>(); PlayerAChesses = new List <Transform>(); PlayerBChesses = new List <Transform>(); PlayerATerritory = new List <Transform>(); PlayerBTerritory = new List <Transform>(); PlayerAChesses.Clear(); PlayerBChesses.Clear(); PlayerAChesses.Add(playerA); foreach (Transform gf in playerA.GetComponent <CharacterProperty>().soldiers) { Transform gfClone = Instantiate(gf, noWhere, Quaternion.identity) as Transform; gfClone.gameObject.layer = 10; PlayerAChesses.Add(gfClone); gfClone.GetComponent <CharacterProperty>().death = true; gfClone.GetComponent <CharacterProperty>().Player = playerA.GetComponent <CharacterProperty>().Player; gfClone.GetComponent <CharacterProperty>().InitPlayer = playerA.GetComponent <CharacterProperty>().Player; } PlayerBChesses.Add(playerB); foreach (Transform gf in playerB.GetComponent <CharacterProperty>().soldiers) { Transform gfClone = Instantiate(gf, noWhere, Quaternion.identity) as Transform; gfClone.gameObject.layer = 10; PlayerBChesses.Add(gfClone); gfClone.GetComponent <CharacterProperty>().death = true; gfClone.GetComponent <CharacterProperty>().Player = playerB.GetComponent <CharacterProperty>().Player; gfClone.GetComponent <CharacterProperty>().InitPlayer = playerB.GetComponent <CharacterProperty>().Player; } foreach (Transform chess in PlayerAChesses) { AllChesses.Add(chess); } foreach (Transform chess in PlayerBChesses) { AllChesses.Add(chess); } PlayerATerritory.Add(GameObject.Find("unit_start_point_A").transform); PlayerBTerritory.Add(GameObject.Find("unit_start_point_B").transform); rUI = transform.GetComponent <RoundUI>(); mUI = transform.GetComponent <MainUI>(); infoUI = transform.GetComponent <MainInfoUI>(); currentSel = transform.GetComponent <selection>(); }
// Use this for initialization void Start() { cp = transform.GetComponent<CharacterProperty>(); PassiveDict = new Dictionary<PassiveType, bool>(); foreach(PassiveType passive in Enum.GetValues(typeof(PassiveType))){ PassiveDict.Add(passive, false); } if((PassiveAbility!=null) && (PassiveAbility.Length>0)){ foreach(PassiveType p in PassiveAbility){ PassiveDict[p] = true; } } rUI = Camera.mainCamera.GetComponent<RoundUI>(); infoUI = Camera.mainCamera.transform.GetComponent<MainInfoUI>(); mUI = Camera.mainCamera.transform.GetComponent<MainUI>(); }
// Use this for initialization void Start() { territoryStart = new Rect(Screen.width-350.0f, 6.0f, 28.0f, 28.0f); allMaps = GameObject.Find("Maps").transform.childCount; iconVault = transform.GetComponent<InfoUI>(); rc = transform.GetComponent<RoundCounter>(); mainInfoUI = transform.GetComponent<MainInfoUI>(); numberStyle[0] = new GUIStyle(); numberStyle[1] = new GUIStyle(); numberStyle[0].font = Number; numberStyle[1].font = Number; numberStyle[0].normal.textColor = new Color(0.8f,0.8f,0.8f,1.0f); numberStyle[1].normal.textColor = new Color(0.8f,0.8f,0.8f,1.0f); numberStyle[0].fontSize = 24; numberStyle[1].fontSize = 20; }
// Use this for initialization void Start() { territoryStart = new Rect(Screen.width - 350.0f, 6.0f, 28.0f, 28.0f); allMaps = GameObject.Find("Maps").transform.childCount; iconVault = transform.GetComponent <InfoUI>(); rc = transform.GetComponent <RoundCounter>(); mainInfoUI = transform.GetComponent <MainInfoUI>(); numberStyle[0] = new GUIStyle(); numberStyle[1] = new GUIStyle(); numberStyle[0].font = Number; numberStyle[1].font = Number; numberStyle[0].normal.textColor = new Color(0.8f, 0.8f, 0.8f, 1.0f); numberStyle[1].normal.textColor = new Color(0.8f, 0.8f, 0.8f, 1.0f); numberStyle[0].fontSize = 24; numberStyle[1].fontSize = 20; }
// Use this for initialization void Start() { cp = transform.GetComponent <CharacterProperty>(); PassiveDict = new Dictionary <PassiveType, bool>(); foreach (PassiveType passive in Enum.GetValues(typeof(PassiveType))) { PassiveDict.Add(passive, false); } if ((PassiveAbility != null) && (PassiveAbility.Length > 0)) { foreach (PassiveType p in PassiveAbility) { PassiveDict[p] = true; } } rUI = Camera.mainCamera.GetComponent <RoundUI>(); infoUI = Camera.mainCamera.transform.GetComponent <MainInfoUI>(); mUI = Camera.mainCamera.transform.GetComponent <MainUI>(); }
// Use this for initialization void Start() { roundCounter = 1; if (!SummonerLand) { playerA = GameObject.Find("pSummonerA").transform.GetChild(0).transform; } else { playerA = GameObject.Find("pSummonerA").transform; } if (!SummonerLand) { playerB = GameObject.Find("pSummonerB").transform.GetChild(0).transform; } else { playerB = GameObject.Find("pSummonerB").transform; } //AllChesses = new List<Transform>(); //PlayerAChesses = new List<Transform>(); //PlayerBChesses = new List<Transform>(); PlayerATerritory = new List <Transform>(); PlayerBTerritory = new List <Transform>(); //PlayerATerritory.Add(GameObject.Find("unit_start_point_A").transform); PlayerATerritory.Add(GameObject.Find("red_tower").transform); //PlayerBTerritory.Add(GameObject.Find("unit_start_point_B").transform); PlayerBTerritory.Add(GameObject.Find("yellow_tower").transform); rUI = transform.GetComponent <RoundUI>(); mUI = transform.GetComponent <MainUI>(); infoUI = transform.GetComponent <MainInfoUI>(); currentSel = transform.GetComponent <selection>(); CamOffest = MidObject.position - transform.position; npc = GameObject.Find("NpcPlayer").GetComponent <NpcPlayer>(); }
// Use this for initialization void Start() { chessUI = Camera.mainCamera.GetComponent <MainInfoUI>(); }
// 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() { currentSel = transform.GetComponent <selection>(); chessUI = transform.GetComponent <MainInfoUI>(); }
// Use this for initialization void Start() { mUI = transform.GetComponent<MainUI>(); sUI = transform.GetComponent<DamageSlidingUI>(); fb = transform.GetComponent<FightBack>(); chessUI = transform.GetComponent<MainInfoUI>(); cFX = transform.GetComponent<CommonFX>(); //currentSel = transform.GetComponent<selection>(); }
void Start() { chessUI = Camera.mainCamera.GetComponent<MainInfoUI>(); }
// Use this for initialization void Start() { currentSel = transform.GetComponent<selection>(); chessUI = transform.GetComponent<MainInfoUI>(); }