private bool Init() { BattleField battleField = BattleTaskManager.GetBattleField(); _prodNightMessage = ProdNightMessage.Instantiate(((Component)_prefabProdNightMessage).GetComponent <ProdNightMessage>(), BattleTaskManager.GetBattleCameras().cutInCamera.transform); _prodNightMessage.panel.widgetsAreStatic = true; _subMessage.Take(1).Subscribe(delegate { _prodNightMessage.panel.widgetsAreStatic = false; _prodNightMessage.Play(null); }).AddTo(base.gameObject); panel.depth = _prodNightMessage.panel.depth - 1; _traFriendFleet = battleField.dicFleetAnchor[FleetType.Friend]; _traEnemyFleet = battleField.dicFleetAnchor[FleetType.Enemy]; _clsCameraMoveBezier = new Bezier(Bezier.BezierType.Quadratic, _strParams.cameraStartPivot, _strParams.cameraEndPivot, _strParams.cameraMidPivot, Vector3.zero); RadarDeployment(); return(true); }
private bool Init() { BattleField battleField = BattleTaskManager.GetBattleField(); this._prodNightMessage = ProdNightMessage.Instantiate(this._prefabProdNightMessage.GetComponent <ProdNightMessage>(), BattleTaskManager.GetBattleCameras().cutInCamera.get_transform()); this._prodNightMessage.panel.widgetsAreStatic = true; this._subMessage.Take(1).Subscribe(delegate(bool _) { this._prodNightMessage.panel.widgetsAreStatic = false; this._prodNightMessage.Play(null); }).AddTo(base.get_gameObject()); this.panel.depth = this._prodNightMessage.panel.depth - 1; this._traFriendFleet = battleField.dicFleetAnchor.get_Item(FleetType.Friend); this._traEnemyFleet = battleField.dicFleetAnchor.get_Item(FleetType.Enemy); this._clsCameraMoveBezier = new Bezier(Bezier.BezierType.Quadratic, this._strParams.cameraStartPivot, this._strParams.cameraEndPivot, this._strParams.cameraMidPivot, Vector3.get_zero()); this.RadarDeployment(); return(true); }