コード例 #1
0
    // Use this for initialization
    void Start()
    {
        if (EnableEchoLocation)
        {
            Character = GetComponent("FirstPersonControllerMod") as FirstPersonControllerMod;
            Character.m_Block = true; //singleton!!! handig
            GameObjects = getObjectsByMaterialName("distanceLerp");
            
            fading = true;

            Microfoon = new MicIn(this, MicrophoneSensitivity);           
        }
    }  
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        GameObjects = getObjectsByMaterialName("distanceLerp");

        if (EnableEchoLocation)
        {
            Character = GetComponent<Flyer>();
            //Character.m_Block = true; //singleton!!! handig

            Microfoon = new MicIn(this, MicrophoneSensitivity);
        }

        fading = true;

        //if (!Blocking)
        //    Character.m_Block = false;
    }