• This project
    • Loading...
  • Sign in

Research And Development / contentfulExample

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • contentfulExample
  • ContentfulExample
  • Assets
  • Packages
  • Globatools
  • Utility
  • InputCheck.cs
  • Dave Boyle's avatar
    project demos fetching single records, multiple records, filtering, and posting new records · 3bdba5d6
    3bdba5d6 Browse Files
    Dave Boyle authored 2019-01-18 11:33:38 -0500
InputCheck.cs 410 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class InputCheck : MonoBehaviour {

    System.Array values;

    void Start ()
    {
        values = System.Enum.GetValues(typeof(KeyCode));
    }

    void Update ()
    {
        foreach(KeyCode key in values)
        {
            if (Input.GetKeyDown(key))
                print(key.ToString());
        }
		
	}
}