Hit.

TryHitComponent(Component, bool) Method

Summary

Calls PlatformerGameKit.Hit.GetTarget(UnityEngine.Component) and PlatformerGameKit.Hit.TryHit(PlatformerGameKit.Hit.ITarget,System.Boolean).
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit
Containing Type
Hit

Syntax

public bool TryHitComponent(Component target, bool dontHitAgain = true)

Parameters

Name Type Description
target Component
dontHitAgain bool

Return Value

Type Description
bool