// Use this for initialization void Start () { p = GetComponentInChildren<Posessable>(); //ParticleSystem[] x = GetComponentsInChildren<ParticleSystem>(); fire = GameObject.Find ("fireplace_fire").GetComponent<ParticleSystem>(); fire.enableEmission = false; }
// Use this for initialization void Start() { p = GetComponentInChildren<Posessable>(); //march = GetComponent<AudioSource>(); pianoRef = GameObject.Find("coloredpiano"); started = false; reverse = false; anim = pianoRef.GetComponent<Animator>(); }
void Start() { used = false; target = GameObject.Find("Target").GetComponent<Transform>(); //parts = GetComponentInChildren<ParticleSystem>(); posessScript = this.gameObject.GetComponent<Posessable>(); scareSound = this.gameObject.GetComponent<AudioSource>(); usedWindow = false; cooldown = cooldownTime; cooldownBool = false; anim = GetComponentInParent<Animator>(); animTimer = 0; playing = false; started = false; reverse = false; change = false; }
// Use this for initialization void Start () { aud = GetComponent<AudioSource>(); p = GetComponentInChildren<Posessable>(); }
void Start() { posessScript = this.GetComponentInChildren<Posessable>(); //source = GetComponent<AudioSource>(); }
// Use this for initialization void Start () { p = GetComponentInChildren<Posessable>(); march = GetComponent<AudioSource>(); }