Class Container
Special InteractableObject that will trigger the LootSpawner on it when interacted with, and delete itself (a container can only be looted once).
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Container
Inherited Members
Namespace: CreatorKitCode
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(LootSpawner))]
public class Container : InteractableObject
Properties
IsInteractable
Declaration
public override bool IsInteractable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
InteractWith(CharacterData)
Declaration
public override void InteractWith(CharacterData target)
Parameters
Type | Name | Description |
---|---|---|
CharacterData | target |
Overrides
Start()
Declaration
protected override void Start()