コード例 #1
0
    // Use this for initialization
    void Start()
    {
        gc           = GC.GetComponent <GameController> ();
        player       = Player.GetComponent <CharacterScript> ();
        instructions = Instructions.GetComponent <InstructionsScript> ();

        menuAudio = GameObject.Find("Soundtrack").GetComponent <AudioSource> ();

        if (menuAudio.isPlaying == false)
        {
            menuAudio.Play();
        }
    }
コード例 #2
0
 void Awake()
 {
     catchEmStorage = this;
 }