Exemplo n.º 1
0
	// Use this for initialization
	void Start () {
        p = GetComponentInChildren<Posessable>();

        //ParticleSystem[] x = GetComponentsInChildren<ParticleSystem>();
		fire = GameObject.Find ("fireplace_fire").GetComponent<ParticleSystem>();
        fire.enableEmission = false;
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     p = GetComponentInChildren<Posessable>();
        //march = GetComponent<AudioSource>();
     pianoRef = GameObject.Find("coloredpiano");
     started = false;
     reverse = false;
     anim = pianoRef.GetComponent<Animator>();
 }
Exemplo n.º 3
0
    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;
    }
Exemplo n.º 4
0
	// Use this for initialization
	void Start () {
        aud = GetComponent<AudioSource>();
        p = GetComponentInChildren<Posessable>();
    }
Exemplo n.º 5
0
    void Start()
    {
        posessScript = this.GetComponentInChildren<Posessable>();

        //source = GetComponent<AudioSource>();
    }
Exemplo n.º 6
0
	// Use this for initialization
	void Start () {
       p = GetComponentInChildren<Posessable>();
       march = GetComponent<AudioSource>();
	}