コード例 #1
0
 // Use this for initialization
 void Start()
 {
     frandCounter = GameObject.Find("FrandCounter");
     fc           = frandCounter.GetComponent <FrandCounter>();
     spoopMeter   = GameObject.Find("Spoop Meter");
     sm           = spoopMeter.GetComponent <SpoopMeterScript>();
     spooped      = false;
 }
コード例 #2
0
ファイル: DoorActivate.cs プロジェクト: jannar/theghosthouse
    //audio source stuff if time

    // Use this for initialization
    void Start()
    {
        //get collider
        bc = GetComponent <BoxCollider> ();

        //FrandCounter object
        canvas = GameObject.Find("Canvas").GetComponent <Canvas>();
        fc     = canvas.GetComponentInChildren <FrandCounter> ();
    }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        corgi               = GameObject.Find("Player 1");
        frandCounter        = GameObject.Find("FrandCounter");
        fc                  = frandCounter.GetComponent <FrandCounter>();
        psb                 = frandCounter.GetComponent <PortraitSwitchboard>();
        pathfinder          = GetComponent <NavMeshAgent>();
        corgiColliderRadius = corgi.GetComponent <CapsuleCollider>().radius;
        colliderRadius      = GetComponent <CapsuleCollider>().radius;

        found = false;
    }
コード例 #4
0
    // Use this for initialization
    void Start()
    {
        //AUDIO SOURCE ON CORGI
        dogSong = this.GetComponent <AudioSource> ();

        //FrandCounter object
        canvas = GameObject.Find("Canvas").GetComponent <Canvas>();
        fc     = canvas.GetComponentInChildren <FrandCounter> ();

        //Music Manager script
        audioManager = GameObject.Find("Music Man");
        mm           = audioManager.GetComponent <MusicManager>();
    }
コード例 #5
0
ファイル: EscapeButton.cs プロジェクト: jannar/theghosthouse
 // Use this for initialization
 void Start()
 {
     img          = GetComponent <Image>();
     frandCounter = GameObject.Find("FrandCounter");
     fc           = frandCounter.GetComponent <FrandCounter>();
 }