Last updated: Sep 8, 2022

Introduction

The Fade Click class is used to allow us to start the game only after clicking the left-mouse button and waiting for a bit of a fade animation. This is very helpful to add a “dramatic” feel to the demo. Really epic stuff.

You can find the Fade Click script ****at this path: Assets\Infima Games\Low Poly Animated - Modern Guns\Demo\Code\Interface\FadeClick.cs

Fields Serialized

Animator. Reference to this interface element’s Animator component.

Start Delay. Delay after clicking to continue at which the game starts.

Fields

Game Start Service. Reference to the game’s IGameStartService service.

Fade Hash. Animator “Fade” hash.

Functions

Wait. Delays the start of the game a little bit. Not literally, but it takes a bit of time for it to tell the IGameStartService that the game has, in fact, started.