[Feat] 일상 활동별 스크립트 작성중

This commit is contained in:
HaeinLEE 2025-04-17 09:51:36 +09:00
parent 1480bad509
commit 395d1e8006
10 changed files with 53 additions and 1309 deletions

View 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");
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 61f97dc6faa89de409ce2414a02c4f40
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56c7c829ffd91cd42fa0653c05b5e81708b30f5b364c2fc5570f4a0c3fb810d2
size 100544
oid sha256:c29b9de69a239dd38b9e4277e129e86117dc680dfcb862d7c898ad5eebae8dec
size 120900

View File

@ -0,0 +1,7 @@

using UnityEngine;
public interface IDailyRoutine
{
public void EventEnter();
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: eb3b1f8a97cd4befaf14a41276d31292
timeCreated: 1744822822

View File

@ -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();
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -3,12 +3,13 @@
--- !u!78 &1
TagManager:
serializedVersion: 2
tags: []
tags:
- FxTemporaire
layers:
- Default
- TransparentFX
- Ignore Raycast
-
- Furniture
- Water
- UI
-