Inheritance: MonoBehaviour
Example #1
0
    public void DeleteLine()
    {
        GameObject LastLine;

        SelectedLine = Spirographe.GetActiveSpiroFormule();
        if (SelectedLine.profondeur > 3)
        {
            SelectedLine.profondeur--;
            LastLine = PanelLignes.transform.GetChild(SelectedLine.profondeur).gameObject;
            //RemoveEventsFromLine(LastLine);
            //Destroy(LastLine);
            LastLine.SetActive(false);
        }
        RefreshPanel();
        //PanelOptionTousDisques.GetComponent<PanelOptionTousDisques>().BuildPanel(); //refresh panel tous disques too
        Spirographe.ValueChange();         //Call ValueChange Event
    }
Example #2
0
 void PaintLastFlag()
 {
     LastLine.DrawFlagE = F_DrawLastFlag;
     LastLine.Prepare();
 }