• This project
    • Loading...
  • Sign in

I_Jemin / Unity-Unit-Test-with-Bird-Game

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • Unity-Unit-Test-with-Bird-Game
  • Assets
  • Scripts
  • IUnityInput.cs
  • I_Jemin's avatar
    Init · e4224bf8
    e4224bf8
    I_Jemin authored 2018-02-24 03:18:45 +0900
IUnityInput.cs 278 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
using UnityEngine;

public interface IUnityInputService
{
    bool GetButtonDown(string buttonName);
}

public class UnityInputService : IUnityInputService
{
    public bool GetButtonDown(string buttonName)
    {
        return Input.GetButtonDown(buttonName);
    }
    
}