示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     totalZap     = currentZap;
     Content      = 0;
     transform    = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     crateMaster  = master.crateMaster;
     this.gridRef = master.gridRef;
 }
示例#2
0
 public Crate(int posX, int posY, Conductor master, int content)
 {
     PositionX_Grid   = posX;
     PositionY_Grid   = posY;
     this.Content     = content;
     this.gridRef     = master.gridRef;
     this.crateMaster = master.crateMaster;
     RegisterCrate();
 }
示例#3
0
    public Factory(int posX, int posY, Conductor master, GameObject factoryGO)
    {
        PosGrid_X        = posX;
        PosGrid_Y        = posY;
        this.gridRef     = master.gridRef;
        this.crateMaster = master.crateMaster;
        FactoryGO        = factoryGO;

        ReStock();
    }