コード例 #1
0
 private void OnDestroy()
 {
     SpriteEffects.Explode(GetComponent <SpriteRenderer>().sprite)
     .Into(unitsSquared).Pieces()
     .At(Easily.Clone(transform.position))
     .EachPieceWeighing(pieceMass)
     .FadingOutAfter(unitFadeOutTimeInSeconds)
     //.AndDisableRotationOfPieces()
     .Rotated(transform.rotation)
     .WithForce(force);
 }