-
-
Save peroon/3a9a08adc73c7c8d0863 to your computer and use it in GitHub Desktop.
関数を変数のように書ける
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public float Delta { | |
get { | |
var scale = (1.0f - randomness * randomScalar); | |
return velocity * scale * Time.deltaTime; | |
} | |
} | |
... | |
if (useLocalCoordinate) | |
transform.localPosition += position.Vector * position.Delta; | |
else | |
transform.position += position.Vector * position.Delta; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment