void Awake() { instance = this; textHolder.text = string.Empty; background = GetComponent <GUITexture>(); background.enabled = false; }
// Start is called before the first frame update void Start() { CurrentPower = MaxPower; discoveredBatteries = 0; text = GetComponent <Text>(); narrationManager = FindObjectOfType <NarrationManager>(); }
// Start is called before the first frame update void Start() { narrationManager = FindObjectOfType <NarrationManager>(); keyLights = GetComponentsInChildren <KeyLight>(); elevatorControl = GetComponentInParent <ElevatorControl>(); audioSource = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Awake() { spriteRenderer = transform.GetChild(0).GetComponent <SpriteRenderer>(); shadow = transform.GetChild(1).GetComponent <SpriteRenderer>(); narrationManager = FindObjectOfType <NarrationManager>(); elevatorLock = FindObjectOfType <ElevatorLock>(); music = FindObjectOfType <KeyMusic>(); audioSource = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { rb2d = GetComponent <Rigidbody2D>(); spriteRenderers = GetComponentsInChildren <SpriteRenderer>(); animators = GetComponentsInChildren <Animator>(); playerCollider = GetComponent <Collider2D>(); gameManager = FindObjectOfType <GameManager>(); musicManager = FindObjectOfType <MusicManager>(); narrationManager = FindObjectOfType <NarrationManager>(); batteryBank = FindObjectOfType <BatteryBank>(); lightSystem = FindObjectOfType <LightSystem>(); }
public void Initialize(NarrationManager narrationManager) { this.narrationManager = narrationManager; if (text == null) { Debug.LogError("Text is null"); } if (actionButton == null) { Debug.LogError("Button is null"); } }
// Start is called before the first frame update void Start() { gameManager = FindObjectOfType <GameManager>(); spriteRenderer = GetComponent <SpriteRenderer>(); Collider = GetComponent <Collider2D>(); batteryBank = FindObjectOfType <BatteryBank>(); narrationManager = FindObjectOfType <NarrationManager>(); state = startState; //InDarkZone = CheckInDarkZone(); lightSystem = GetComponentInParent <LightSystem>(); }
private void Awake() { _manager = transform.parent.parent.GetComponent <NarrationManager>(); text.enabled = false; text.text = fableAsset.fableText; audioClip = fableAsset.audioClip; //Currently only supporting autioTime ( no sample support ). _markers = new float[fableAsset.markers.Count]; for (int i = 0; i < fableAsset.markers.Count; i++) { _markers[i] = fableAsset.markers[i].audioTime; } }
// Start is called before the first frame update void Awake() { selectedFont = robotoTextFont; narrationManager = this; CreateDialogueBox(); textWritingCoroutine = null; dialogueBoxInstance = null; player1Transform = GameManager.playerOne.transform; player2Transform = GameManager.playerTwo.transform; ChangeTextColor(PlayerPrefs.GetInt("REU_In-Game Text Color", 0)); // initiation, either with saved value or with base value ChangeTextSize(PlayerPrefs.GetInt("REU_In-Game Text Size", 1)); ChangeSelectedFont(SwissArmyKnife.ConvertPlayerPrefStringAsBool(PlayerPrefs.GetString("REU_Stylized In-Game Text Font"))); StartCoroutine(CheckElementToActivate()); }
void Init() { newColor = new Color(UnityEngine.Random.value, UnityEngine.Random.value, UnityEngine.Random.value, 0.9f); oldColor = new Color(UnityEngine.Random.value, UnityEngine.Random.value, UnityEngine.Random.value, 0.9f); audioClips = new Dictionary <string, AudioClip>(); UnityEngine.Object[] os = Resources.LoadAll("Sounds"); foreach (UnityEngine.Object o in os) { audioClips.Add((o as AudioClip).name, o as AudioClip); //Debug.Log(o); } // audioClips.Add("splat", Resources.Load("Sounds/splat") as AudioClip); // audioClips.Add("shoot", Resources.Load("Sounds/shoot") as AudioClip); // audioClips.Add("bounce", Resources.Load("Sounds/bounce") as AudioClip); // audioClips.Add("ballBounce", Resources.Load("Sounds/ballBounce") as AudioClip); // audioClips.Add("speedPaint", Resources.Load("Sounds/speedPaint") as AudioClip); // audioClips.Add("clean", Resources.Load("Sounds/erasePaint") as AudioClip); // audioClips.Add("grow", Resources.Load("Sounds/growPaint") as AudioClip); // Prefabs = new Dictionary <string, GameObject>(); os = Resources.LoadAll("Prefabs"); foreach (UnityEngine.Object o in os) { Prefabs.Add((o as GameObject).name, o as GameObject); } Materials = new Dictionary <string, Material>(); Materials.Add("bubble", Resources.Load("Materials/SoapBubble") as Material); Materials.Add("default", Resources.Load("Materials/lambert1") as Material); WorldGlobal.Narrator = GetComponent <NarrationManager>(); //WorldGlobal.killZ = GetComponent<KillZ>(); // Narrator = new NarrationManager(); }
private void Start() { Instance = this; CurrentDiscussion = new List <TextLine>(); ResetPanel(Color.clear); }
// Start is called before the first frame update void Start() { narrationManager = FindObjectOfType <NarrationManager>(); lightSystem = FindObjectOfType <LightSystem>(); audioSource = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { narrationManager = FindObjectOfType <NarrationManager>(); gameManager = FindObjectOfType <GameManager>(); }