Beispiel #1
0
 private void Awake()
 {
     uControls = new UniversalControls();
     uControls.Enable();
     uControls.Player.Interact.performed += ShowJournal;
     InteractibleTrigger.EnableJournal   += EnableJournal;
     InteractibleTrigger.DisableJournal  += DisableJournal;
 }
Beispiel #2
0
 private void Awake()
 {
     uControls = new UniversalControls();
     uControls.Enable();
     //Add the events to player invenotry and craft inventory as these are static. Workbench inventory will be dynamic and thus is not set.
     AddEvents(inventory);
     AddEvents(craftInventory);
 }
Beispiel #3
0
 void Awake()
 {
     uControls = new UniversalControls();
     uControls.Enable();
     active    = false;
     colliding = false;
     image     = GameObject.Find("PopupImage").GetComponent <Image>();
     NoteText  = GameObject.Find("NoteText");
     NoteText.GetComponent <Text>().text = "";
     transparent = image.sprite;
 }
Beispiel #4
0
    private void Awake()
    {
        uControls = new UniversalControls();
        uControls.Enable();

        SpriteRenderer ImageTutorial = gameObject.GetComponent <SpriteRenderer>();
        Color          newColor      = ImageTutorial.color;

        newColor.a          = 0; // changing Alpha to zero
        ImageTutorial.color = newColor;
    }
Beispiel #5
0
 private void Awake()
 {
     uControls = new UniversalControls();
     uControls.Enable();
     manager = FindObjectOfType <AudioManager>();
 }
Beispiel #6
0
 private void Awake()
 {
     uControls = new UniversalControls();
     uControls.Enable();
 }
Beispiel #7
0
 private void Awake()
 {
     uControls = new UniversalControls();
     uControls.Enable();
     //uControls.Player.Light.performed += Light;
 }