Merge branch 'main' of http://192.168.2.19:3000/hyskai/_xiaofang
# Conflicts: # xiaofang/Assets/Scenes/firetest.unity # xiaofang/Assets/Script/Item/Fire.cs # xiaofang/Assets/Script/npc/DiStributionbox.cs
This commit is contained in:
commit
f6b3a3986d
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6af5695de08b2b43a158499d37d3fbe
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -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());
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user