private void Start() { this.tileAnimInstance = Object.Instantiate <GameObject>(this.tileAnimPrefab); this.tileAnimInstance.set_name("TileAnimations"); this.tileAnimInstance.get_transform().set_parent(StrategyTopTaskManager.Instance.UIModel.OverView); this.tileAnimInstance.get_transform().set_localScale(Vector3.get_one()); this.tileAnimInstance.get_transform().set_localPosition(Vector3.get_zero()); this.cam = StrategyTopTaskManager.Instance.UIModel.MapCamera.myCamera; this.waitingForTiles = true; this.attacking = false; this.on = false; this.isFinished = false; this.curTile = 0; this.tankerAnim = false; this.textBG = GameObject.Find("/StrategyTaskManager/OverView/TileAnimations/TextBG").GetComponent <UITexture>(); this.textBG.get_transform().set_localScale(new Vector3(1f, 0f, 1f)); this.textBG.alpha = 0f; this.text = GameObject.Find("/StrategyTaskManager/OverView/TileAnimations/Text").GetComponent <UITexture>(); this.taa = GameObject.Find("/StrategyTaskManager/Map Root/TileAnimationAttack").GetComponent <TileAnimationAttack>(); this.taa.SetActive(false); this.tileAnimInstance.SetActive(false); this.tiles = new GameObject[17]; this.GetTiles(); }
private void Start() { tileAnimInstance = Object.Instantiate(tileAnimPrefab); tileAnimInstance.name = "TileAnimations"; tileAnimInstance.transform.parent = StrategyTopTaskManager.Instance.UIModel.OverView; tileAnimInstance.transform.localScale = Vector3.one; tileAnimInstance.transform.localPosition = Vector3.zero; cam = StrategyTopTaskManager.Instance.UIModel.MapCamera.myCamera; waitingForTiles = true; attacking = false; on = false; isFinished = false; curTile = 0; tankerAnim = false; textBG = GameObject.Find("/StrategyTaskManager/OverView/TileAnimations/TextBG").GetComponent <UITexture>(); textBG.transform.localScale = new Vector3(1f, 0f, 1f); textBG.alpha = 0f; text = GameObject.Find("/StrategyTaskManager/OverView/TileAnimations/Text").GetComponent <UITexture>(); taa = GameObject.Find("/StrategyTaskManager/Map Root/TileAnimationAttack").GetComponent <TileAnimationAttack>(); taa.SetActive(isActive: false); tileAnimInstance.SetActive(false); tiles = new GameObject[17]; GetTiles(); }