// Use this for initialization void Start() { // Ask our game object for the rigidbody 2d component RB = gameObject.GetComponent <Rigidbody2D>(); // Set the player attributes Player = FindObjectOfType <Character_Attributes> (); UI_Manager.Instance.UpdateHealth(); UI_Manager.Instance.UpdateSpeed(); }
void Awake() { Instance = this; }