Skip to content

Instantly share code, notes, and snippets.

@cyberjj999
Created May 7, 2022 03:41
Show Gist options
  • Save cyberjj999/3c030381576190c4f03214b902144b15 to your computer and use it in GitHub Desktop.
Save cyberjj999/3c030381576190c4f03214b902144b15 to your computer and use it in GitHub Desktop.
Becoming A Metaverse Developer Article | Start() Method
// 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