public AbstractWidget(int size, bool isSmall)
 {
     this._size    = size;
     this._isSmall = isSmall;
     _gears        = new Gears();
     _springs      = new Springs();
     _levers       = new Levers();
 }
Ejemplo n.º 2
0
 public Widget2(float price)
 {
     _Price   = price;
     _Gears   = new Gears();
     _Springs = new Springs();
     _Levers  = new Levers();
     _painted = new Painted();
 }
Ejemplo n.º 3
0
        public AbstractWidget(int size, WidgetColor color)

        {
            this._size   = size;
            this._color1 = color;
            _springs     = new Springs();
            _levers      = new Levers();
            _gears       = new Gears();
        }
Ejemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     levers     = GameObject.Find("Red").GetComponent <Levers>();          //Connects the levers script to this one
     lockedDoor = GameObject.Find("LockDoor").GetComponent <LockedDoor>(); //Connects the Locked door script to this one
     delay      = 0;                                                       //How long the door waits to move
 }
Ejemplo n.º 5
0
 // Start is called before the first frame update
 void Start()
 {
     levers = GetComponent <Levers>();       //Connects the levers script to this one
     sound  = GetComponent <SoundManager>(); //Connects the sound manager to this script
 }