public void AddNewCodeReader() { CodeReader tempNewCodeReader = new CodeReader(); tempNewCodeReader.Name = "New Code Reader"; CodeReaders.Add(tempNewCodeReader); }
public void CodeContainerReader(Transform content) { // Debug.Log("CodeContainer Reader Entered " + content.name); // CoroutineController controller; //this.StartCoroutineEx(CodeReader(block), out controller); //if (controller.state != CoroutineState.Finished) //{ // return; //} //{ //} CodeReaders.Add(CodeReaderID); StartCoroutine(CodeReader(content, 0)); //Transform block = content.GetChild(0); //ActionStates action; //Transform currentBlock = block; //while (currentBlock != null) //{ // action = CodeBlockReader(currentBlock); // if (action != ActionStates.NULL && action != ActionStates.SPECIAL) // { // PlayerActions.Add(action); // } // if (action != ActionStates.SPECIAL) // { // currentBlock = GetNext(currentBlock); // } // //yield return new WaitForSeconds(1); //} }