public void createText(Vector3 position, float comboDamage) { // Instantiate the text. Debug.Log("Create text!"); GameObject textObject = Instantiate(this.damageTextPrefab, position, Quaternion.identity); FadingText fadeScript = textObject.GetComponent <FadingText>(); fadeScript.StartFade(comboDamage); //textObject.GetComponent<BillboardScript>().followCam = isAttacker ? Camera.main : Camera.main; //TODO: Change }