共用方式為


SKAction.CreateChangeChargeTo(Single, Double) 方法

定義

建立的 Factory 方法 SKAction ,會將 Charge 物件的 PhysicsBody 指定 SKNode 變更為 newCharge

[Foundation.Export("changeChargeTo:duration:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public static SpriteKit.SKAction CreateChangeChargeTo (float newCharge, double duration);
static member CreateChangeChargeTo : single * double -> SpriteKit.SKAction

參數

newCharge
Single
duration
Double

傳回

屬性

適用於