Created
May 7, 2022 03:41
-
-
Save cyberjj999/3c030381576190c4f03214b902144b15 to your computer and use it in GitHub Desktop.
Becoming A Metaverse Developer Article | Start() Method
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
// Start is called before the first frame update | |
void Start() | |
{ | |
// Getting necessary components and component values for game logic | |
playerRigidBody = GetComponent<Rigidbody>(); | |
distToGround = GetComponent<Collider>().bounds.extents.y; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment