//Function : GetComponentFunction //Method : This is the Function that used //For Getting The Component void GetComponentFunction() { cam = Camera.main; selectScoopScript = GetComponent <SelectedScoopScript>(); }
private void Awake() { if (instance == null) { instance = this; } cam = Camera.main; }