// 自动挖掘机 // Token: 0x0600236B RID: 9067 RVA: 0x000C016C File Offset: 0x000BE36C private void CreateHitEffect() { // 如果没有挖掘的特效预制体,直接退出 if (this.hitEffectPrefab == null) { return; } // 如果已经存在挖掘的特效,先销毁 if (this.hitEffect != null) { this.DestroyHitEffect(); } // 获取挖掘位置,并在FXFront2层级上创建挖掘特效 Vector3 position = Grid.CellToPosCCC(this.dig_cell, Grid.SceneLayer.FXFront2); this.hitEffect = GameUtil.KInstantiate(this.hitEffectPrefab, position, Grid.SceneLayer.FXFront2, null, 0); // 激活并播放特效动画 this.hitEffect.SetActive(true); KBatchedAnimController component = this.hitEffect.GetComponent(); component.sceneLayer = Grid.SceneLayer.FXFront2; component.initialMode = KAnim.PlayMode.Loop; component.enabled = false; component.enabled = true;

AutoMiner Token 0x0600236B RID 9067 RVA 0x000C016C File Offset 0x000BE36Cprivate void CreateHitEffect	if thishitEffectPrefab == null			return;		if thishitEffect != null			thisDestroyHitEffect;		Vector

原文地址: https://www.cveoy.top/t/topic/hpBZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录