Skip to main content

InventoryCollisionDamage.ResetState

Declaration#

public void ResetState()

Description#

Resets the collision state (clearing list of items not to hit a second time)

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod(InventoryCollisionDamage target)    {        // Object keeps track of other objects it hit during an attack        // It will not hit this items a second time        // Reset state at the start of each attack to clear this list        target.ResetState();    }
}