示例#1
0
    public void Delete()
    {
        target.DragBlock();
        Destroy(target.gameObject);

        gameObject.SetActive(false);
    }
 // v1.3 -Clear button added to delete all blocks from the BEProgrammingEnv
 //-- clear programming environment --
 public void BEClearCode()
 {
     for (int i = beTargetObject.beBlockGroupsList.Count - 1; i >= 0; i--)
     {
         UIDrag uiDrag = beTargetObject.beBlockGroupsList[i].GetComponent <UIDrag>();
         uiDrag.DragBlock();
     }
 }