コード例 #1
0
ファイル: fireplace.cs プロジェクト: JeffreyByJeffrey/Ghost
	// Use this for initialization
	void Start () {
        p = GetComponentInChildren<Posessable>();

        //ParticleSystem[] x = GetComponentsInChildren<ParticleSystem>();
		fire = GameObject.Find ("fireplace_fire").GetComponent<ParticleSystem>();
        fire.enableEmission = false;
    }
コード例 #2
0
ファイル: piano.cs プロジェクト: hakr1337/Ghost
 // Use this for initialization
 void Start()
 {
     p = GetComponentInChildren<Posessable>();
        //march = GetComponent<AudioSource>();
     pianoRef = GameObject.Find("coloredpiano");
     started = false;
     reverse = false;
     anim = pianoRef.GetComponent<Animator>();
 }
コード例 #3
0
ファイル: Scare.cs プロジェクト: hakr1337/Ghost
    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;
    }
コード例 #4
0
ファイル: radio.cs プロジェクト: JeffreyByJeffrey/Ghost
	// Use this for initialization
	void Start () {
        aud = GetComponent<AudioSource>();
        p = GetComponentInChildren<Posessable>();
    }
コード例 #5
0
ファイル: lamp.cs プロジェクト: hakr1337/Ghost
    void Start()
    {
        posessScript = this.GetComponentInChildren<Posessable>();

        //source = GetComponent<AudioSource>();
    }
コード例 #6
0
ファイル: piano.cs プロジェクト: JeffreyByJeffrey/Ghost
	// Use this for initialization
	void Start () {
       p = GetComponentInChildren<Posessable>();
       march = GetComponent<AudioSource>();
	}