Exemplo n.º 1
0
 private void trigger(bool triggered, InteractionTrigger trigger)
 {
     if (triggered)
     {
         DataPersitanceHelpers.SaveAll();
     }
 }
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyUp(KeyCode.F6))
        {
            DataPersitanceHelpers.SaveAll();
        }

        if (Input.GetKeyUp(KeyCode.F7))
        {
            DataPersitanceHelpers.LoadAll();
        }
    }