void Awake() { if (gameObject.GetComponent <ActiveStats>() != null) { activeStats = gameObject.GetComponent <ActiveStats>(); } }