Пример #1
0
    void StepSoundEmmiting()
    {
        if (name != "Player")
        {
            return;
        }

        time += Time.deltaTime;
        if (time > 0.5f)
        {
            SoundGrid.CreateEmitter(transform.position);
            time = 0;
        }
    }
Пример #2
0
 public void Change()
 {
     //MapReader.ReadMap(TerrainBoard.instance,GetComponent<Text>().text);
     TerrainBoard.instance.ChangeMap(GetComponent <Text>().text);
     SoundGrid.ChangeMap();
 }