mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-08 23:03:43 +00:00
Hammer now taken on start
This commit is contained in:
20
Assets/Scripts/SetItemsOnStart.cs
Normal file
20
Assets/Scripts/SetItemsOnStart.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Nothke.Interaction;
|
||||
using Nothke.Interaction.Items;
|
||||
|
||||
public class SetItemsOnStart : MonoBehaviour
|
||||
{
|
||||
public Hands hands;
|
||||
|
||||
public GenericItem[] items;
|
||||
|
||||
void Start()
|
||||
{
|
||||
foreach (var item in items)
|
||||
{
|
||||
hands.Take(item);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/SetItemsOnStart.cs.meta
Normal file
11
Assets/Scripts/SetItemsOnStart.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb13478e4c42bd7489db482354f8b915
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user