// Connect the script components to the script variables (private) void GetScriptComponents() { // Get the script components from this object and store them in the script variables scriptStats = GetComponent <scr_playerController_default_stats>(); playerControllerRigidbody = GetComponentInParent <Rigidbody>(); }
// Run this code once at the start (private) void Start() { // Connect the script component to the script variable scriptStats = GetComponent <scr_playerController_default_stats>(); }