예제 #1
0
    public GameObject defaultPanel; // for visuals - the default panel at the back

    public JSFBoardPanel(JSFPanelDefinition newDefinition, int strength, JSFBoard myMaster)
    {
        master = myMaster;         // set the master script

        // set the type - DO NOT USE setType() as we do not want to initPanels()~!
        pnd        = newDefinition;
        durability = strength;
    }
예제 #2
0
 public void setType(JSFPanelDefinition newDefinition, int strength)
 {
     if (pnd != null)
     {
         onPanelDestroy();             // the destroy call if there is a panel type
     }
     pnd        = newDefinition;
     durability = strength;
     initPanels();
 }