Exemple #1
0
 private void Awake()
 {
     photocopierState = PhotocopierState.Idle;
     registerObject   = gameObject.GetComponent <RegisterObject>();
     printer          = new Internal.Printer(0, trayCapacity, false);
     scanner          = new Internal.Scanner(false, true, null, null);
 }
Exemple #2
0
        private void SyncPhotocopierState(PhotocopierState newState)
        {
            photocopierState = newState;
            switch (newState)
            {
            case PhotocopierState.Idle:
                spriteHandler.ChangeSprite(0);
                break;

            case PhotocopierState.Production:
                spriteHandler.ChangeSprite(1);
                break;
            }
        }