# Conflicts:
#	xiaofang/Assets/Scenes/firetest.unity
#	xiaofang/Assets/Script/Item/Fire.cs
#	xiaofang/Assets/Script/npc/DiStributionbox.cs
This commit is contained in:
shurongsen 2024-10-23 20:58:35 +08:00
commit f6b3a3986d
2 changed files with 3 additions and 8 deletions

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: b6af5695de08b2b43a158499d37d3fbe
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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<Fire>().SetFire(currentFire);
}
}
@ -72,6 +73,7 @@ public class Firelive : MonoBehaviour
Destroy(currentFire);
currentFire=Instantiate(bigfire, transform.position, Quaternion.identity);
Canbig = false;
transform.GetComponent<Fire>().SetFire(currentFire);
StartCoroutine(DelayedSpread());
}