HasClick

public protocol HasClick : HasCollision, HasRUI

An interface used for entities which have actions upon being clicked

  • Action to be applied on successfully tapping an Entity.

    Declaration

    Swift

    var tapAction: ((HasClick, SIMD3<Float>?) -> Void)? { get set }