Skip to main content

TouchScreenButtonOld

A class in Root.Township, the global namespace.

Older touch screen button that just flashes its pressed look for a quarter second when pressed.

Constructors​

MemberWhat it is
TouchScreenButtonOld()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private bool enabledBasedOnGameObjectIf true, the button counts as disabled while its object is inactive in the hierarchy.

Properties​

MemberWhat it is
override bool IsEnabled { get; set; }Base enabled state, but false while the object is inactive if enabledBasedOnGameObject is set.

Methods​

MemberWhat it is
protected override void InternalPress()Starts the highlight flash.
1 private and internal method
MemberWhat it is
private IEnumerator Highlight() (iterator)Coroutine that shows the pressed alpha for 0.25 seconds, then the normal alpha.

Used in​

Members of other types that take, return or hold a TouchScreenButtonOld: