# Help Please with Unity C# Android buttons

**URL:** https://discussions.unity.com/t/help-please-with-unity-c-android-buttons/662755
**Category:** Mobile
**Created:** [April 25, 2017, 9:53pm UTC](https://discussions.unity.com/t/help-please-with-unity-c-android-buttons/662755 "2017-04-25T21:53:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![FoxBinary\_1](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@FoxBinary\_1](https://discussions.unity.com/u/FoxBinary_1)
#### Post date: [April 25, 2017, 9:53pm UTC](https://discussions.unity.com/t/help-please-with-unity-c-android-buttons/662755/1 "2017-04-25T21:53:41Z")

</div>

Hello ,

Thank you for taking the time to read this and help me, I am new to C# and unity.

I have gone through tutorials and I have a basic stucture for my text based game but I want to turn my windows Key inputs in to buttons so it can be published and used on android devices.

the code I currently have is seen below.

> [@](#):
>
> void state\_sheets\_1() {  
> text.text = "What are you doing just standing there holding a mirror? Hurry up " +  
> “and get out of this cell! \n\n” +  
> “Press R to Return to roaming your cell” ;  
> if (Input.GetKeyDown(KeyCode.R)) {myState = States.cell\_mirror;}

So please could you help me in a simple template where I can create a 1,2 and 3 or A B and C button so I can change my state for my text based game instead of having “KeyCode.R” ect.

Thank you

Sorry for the basic and noob question.

Kind Regards,

---

<div class="post-metadata">

### Author: ![JoeStrout](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/joestrout/32/200738_2.png) [@JoeStrout](https://discussions.unity.com/u/JoeStrout)
#### Post date: [April 25, 2017, 11:23pm UTC](https://discussions.unity.com/t/help-please-with-unity-c-android-buttons/662755/2 "2017-04-25T23:23:18Z")

</div>

Go through at least the first half-dozen of [these tutorials](https://unity3d.com/learn/tutorials/topics/user-interface-ui). The answers you seek are there.
