Keep a state in a boolean after the button is pressed once and then check if the button is pressed again within the next two seconds or so. If it is pressed again, perform whatever action you like.
More Related Contents:
- Making an XY line chart in Unity with C#
- What is the best way to save game state?
- How to make the script wait/sleep in a simple way in unity
- Accessing a variable from another script C# [duplicate]
- Rotate GameObject over time
- “A namespace cannot directly contain members such as fields or methods” [closed]
- Unity singleton manager classes
- How to connect to database from Unity
- Unity how to make a Visual JoyStick in Unity
- Using Layers and Bitmask with Raycast in Unity
- Objects in Scene dark after calling LoadScene/LoadLevel
- Can’t change GameObject color via script?
- Read and Write file on streamingAssetsPath
- How to make Texture2D Readable via script
- Scale GameObject over time
- Detect swipe gesture direction
- How to install Android apk from code in unity
- Use the dynamic keyword/.NET 4.6 feature in Unity
- Piecewise linear integer curve interpolation in C#/Unity3D
- Convert data type from inherited classes in C#
- Start android service from Unity3D code
- More organized way to call Coroutines?
- How do extension methods work?
- Declaring a new instance of a class in C#
- Unity: Live Video Streaming
- Build C++ plugin for Unity
- Download AssetBundle in hard disk
- Play 360 Stereoscopic video with VideoPlayer
- Handle touches not started on the UI
- Unity load medias from folder and display on RawImage