예제 #1
0
 public void Interact(int CurrentAction)
 {
     if (currentChair == null)
     {
         currentChair = currentChair = FindObjectOfType <ComputerChair>();
     }
     if (CurrentAction == 0)
     {
         return;
     }
     else if (CurrentAction == 1)
     {
         CareersMenu();
     }
     else if (CurrentAction == 2)
     {
         ArtSubMenu();
     }
     else if (CurrentAction == 3)
     {
         ComposeSubMenu();
     }
     else if (CurrentAction == 4)
     {
         WriteSubMenu();
     }
     else if (CurrentAction == 5)
     {
         currentChair.TrueInteract(() => SimpleAction("Study"));
     }
     else if (CurrentAction == 6)
     {
         currentChair.TrueInteract(() => SimpleAction("Browse"));
     }
 }
예제 #2
0
    private void Start()
    {
        write   = new ComputerInteractionModel(InteractType.write);
        art     = new ComputerInteractionModel(InteractType.art);
        compose = new ComputerInteractionModel(InteractType.compose);

        jobCanvas    = FindObjectOfType <FindCareerUi>();
        currentChair = FindObjectOfType <ComputerChair>();
        this.interactionOptions.PlayerPathfindingTarget = currentChair.interactionOptions.PlayerPathfindingTarget;
    }
예제 #3
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }