void Start() { if (activateNaration) { naration = gameObject.GetComponent <OnEnableNarrationTrigger>(); } }
public Item getItem() { OnEnableNarrationTrigger narration = GetComponent <OnEnableNarrationTrigger>(); narration.theNarration.phrases[0].text = "You got " + amount + " " + name + "!"; narration.enabled = true; return(new Item(name, description, type, amount, PlayerPrefs.GetString("username"))); }
void Start() { antRotation.eulerAngles = new Vector3(0, 0, 0); script = gameObject.GetComponent <OnEnableNarrationTrigger>(); }