Пример #1
0
        public void Silence()
        {
            string hit = "";

            if (PlayRoutine != null)
            {
                hit += "Stopping\n";
                StopCoroutine(PlayRoutine);
            }
            Playing = false;
            InMainCoroutineWhile = false;
            counter          = Duration;
            PlaySustainAtEnd = false;

            AreaFlag[] areas = Where.ToArray();
            for (int i = 0; i < areas.Length; i++)
            {
                hit += "Silencing: " + areas[i].ToString() + "\n";
                //Debug.Log("Silencing: " + areas[i].ToString() + "\n\t" + name);
                NSManager.Instance.ControlDirectly(areas[i], 0);
            }
            //for (int i = 0; i < areas.Length; i++)
            //{
            //	//Debug.Log("Silencing: " + areas[i].ToString() + "\n");
            //	NSManager.Instance.ControlDirectly(areas[i], 0);
            //}
            //for (int i = 0; i < areas.Length; i++)
            //{
            //	//Debug.Log("Silencing: " + areas[i].ToString() + "\n");
            //	NSManager.Instance.ControlDirectly(areas[i], 0);
            //}
            Debug.Log(hit);
        }
Пример #2
0
 public override string ToString()
 {
     return(MyLocation.ToArray().ToString());
     //return MyLocation.ToStringIncludedAreas();
     //return MyLocation.ToStringIncludedAreas();
 }