[Feat] 일상 활동별 스크립트 작성중
This commit is contained in:
parent
1480bad509
commit
395d1e8006
11
Assets/LIN/DailyRoutineBed.cs
Normal file
11
Assets/LIN/DailyRoutineBed.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DailyRoutineBed : MonoBehaviour, IDailyRoutine
|
||||
{
|
||||
public void EventEnter()
|
||||
{
|
||||
Debug.Log("Its a Bed");
|
||||
}
|
||||
}
|
11
Assets/LIN/DailyRoutineBed.cs.meta
Normal file
11
Assets/LIN/DailyRoutineBed.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 61f97dc6faa89de409ce2414a02c4f40
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:56c7c829ffd91cd42fa0653c05b5e81708b30f5b364c2fc5570f4a0c3fb810d2
|
||||
size 100544
|
||||
oid sha256:c29b9de69a239dd38b9e4277e129e86117dc680dfcb862d7c898ad5eebae8dec
|
||||
size 120900
|
||||
|
7
Assets/LIN/IDailyRoutine.cs
Normal file
7
Assets/LIN/IDailyRoutine.cs
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
public interface IDailyRoutine
|
||||
{
|
||||
public void EventEnter();
|
||||
}
|
3
Assets/LIN/IDailyRoutine.cs.meta
Normal file
3
Assets/LIN/IDailyRoutine.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eb3b1f8a97cd4befaf14a41276d31292
|
||||
timeCreated: 1744822822
|
@ -1,18 +1,18 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
[RequireComponent(typeof(Rigidbody))]
|
||||
public class LifeRoutineController : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
[SerializeField] LayerMask furnitureLayerMask;
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
if (furnitureLayerMask == (furnitureLayerMask | (1 << other.gameObject.layer)))
|
||||
{
|
||||
other.GetComponent<IDailyRoutine>().EventEnter();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
BIN
Assets/StoreAssets/RPG Tiny Hero Duo/Material/PBR_Default.mat
(Stored with Git LFS)
BIN
Assets/StoreAssets/RPG Tiny Hero Duo/Material/PBR_Default.mat
(Stored with Git LFS)
Binary file not shown.
BIN
Assets/StoreAssets/RPG Tiny Hero Duo/Material/Polyart_Default.mat
(Stored with Git LFS)
BIN
Assets/StoreAssets/RPG Tiny Hero Duo/Material/Polyart_Default.mat
(Stored with Git LFS)
Binary file not shown.
@ -3,12 +3,13 @@
|
||||
--- !u!78 &1
|
||||
TagManager:
|
||||
serializedVersion: 2
|
||||
tags: []
|
||||
tags:
|
||||
- FxTemporaire
|
||||
layers:
|
||||
- Default
|
||||
- TransparentFX
|
||||
- Ignore Raycast
|
||||
-
|
||||
- Furniture
|
||||
- Water
|
||||
- UI
|
||||
-
|
||||
|
Loading…
x
Reference in New Issue
Block a user