// Use this for initialization void Start() { programBlock = GetComponent <ProgramBlock> (); programBlock.SetProgramBlockName("If"); trueFalseBlock = ProgramFile.AddProgramBlock <ProgramTrueFalseBlock> (gameObject).GetComponent <ProgramTrueFalseBlock> (); assignVariableBlock = ProgramFile.AddProgramBlock <ProgramAssignVariableBlock> (gameObject).GetComponent <ProgramAssignVariableBlock> (); }
// Use this for initialization void Start() { programBlock = GetComponent <ProgramBlock> (); programBlock.SetProgramBlockName("Assign Variable"); programVariableReference = ProgramFile.AddProgramBlock <ProgramVariableReference> (gameObject).GetComponent <ProgramVariableReference>(); programNumber = ProgramFile.AddProgramBlock <ProgramNumber> (gameObject).GetComponent <ProgramNumber>(); }