我是這樣寫的:
public ParticleSystem water;
public float speed = 20;
water.main.startSpeedMultiplier= speed ;
可是系統提示:
Assets/Script/SpeedControl.cs(22,14): error CS1612: Cannot modify a value type return value of `UnityEngine.ParticleSystem.main'. Consider storing the value in a temporary variable
應該怎么辦?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/61363.html
標籤:Unity3D
下一篇:cocos2d-x翻頁的效果
