private IEnumerator PlayerWatch() { while (true) { var commands = _auto.CreateCommands(); if (commands.Count != 0) { var commandNo = new System.Random().Next(commands.Count); // Debug.Log(commands[commandNo].Visual); commands[commandNo].Exec(); } yield return(new WaitForSeconds(0.3f)); } }