[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
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:56c7c829ffd91cd42fa0653c05b5e81708b30f5b364c2fc5570f4a0c3fb810d2
|
oid sha256:c29b9de69a239dd38b9e4277e129e86117dc680dfcb862d7c898ad5eebae8dec
|
||||||
size 100544
|
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;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.Serialization;
|
||||||
|
|
||||||
|
[RequireComponent(typeof(Rigidbody))]
|
||||||
public class LifeRoutineController : MonoBehaviour
|
public class LifeRoutineController : MonoBehaviour
|
||||||
{
|
{
|
||||||
// Start is called before the first frame update
|
[SerializeField] LayerMask furnitureLayerMask;
|
||||||
void Start()
|
private void OnTriggerEnter(Collider other)
|
||||||
{
|
{
|
||||||
|
if (furnitureLayerMask == (furnitureLayerMask | (1 << other.gameObject.layer)))
|
||||||
|
{
|
||||||
|
other.GetComponent<IDailyRoutine>().EventEnter();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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
|
--- !u!78 &1
|
||||||
TagManager:
|
TagManager:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
tags: []
|
tags:
|
||||||
|
- FxTemporaire
|
||||||
layers:
|
layers:
|
||||||
- Default
|
- Default
|
||||||
- TransparentFX
|
- TransparentFX
|
||||||
- Ignore Raycast
|
- Ignore Raycast
|
||||||
-
|
- Furniture
|
||||||
- Water
|
- Water
|
||||||
- UI
|
- UI
|
||||||
-
|
-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user