diff --git a/xiaofang/Assets/Scenes/firetest.unity.meta b/xiaofang/Assets/Scenes/firetest.unity.meta deleted file mode 100644 index 238e9c81..00000000 --- a/xiaofang/Assets/Scenes/firetest.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b6af5695de08b2b43a158499d37d3fbe -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/xiaofang/Assets/Script/Item/Firelive.cs b/xiaofang/Assets/Script/Item/Firelive.cs index 0bb25249..e9d34dc3 100644 --- a/xiaofang/Assets/Script/Item/Firelive.cs +++ b/xiaofang/Assets/Script/Item/Firelive.cs @@ -60,7 +60,8 @@ public class Firelive : MonoBehaviour isBurning = true; // 初始在pos位置生成小火焰预制体 - currentFire = Instantiate(minfire, transform.position, Quaternion.identity); + currentFire = Instantiate(minfire, transform.position, Quaternion.identity); + transform.GetComponent().SetFire(currentFire); } } @@ -72,6 +73,7 @@ public class Firelive : MonoBehaviour Destroy(currentFire); currentFire=Instantiate(bigfire, transform.position, Quaternion.identity); Canbig = false; + transform.GetComponent().SetFire(currentFire); StartCoroutine(DelayedSpread()); }