[Feat] 드래그 애니메이션 추가

This commit is contained in:
HaeinLEE 2025-05-06 03:09:43 +09:00
parent a40902a5de
commit c2250c28bf
28 changed files with 181 additions and 53 deletions

BIN
Assets/LIN/Animations/Drag Down Animation.anim (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,7 +1,8 @@
fileFormatVersion: 2
guid: 66016880ee1ff09429065e570a748578
PrefabImporter:
guid: f27b3abad6872c44e97912eebec8d88f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/LIN/Animations/Drag Left Animation.anim (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,7 +1,8 @@
fileFormatVersion: 2
guid: 0a190a5b9816abf478788174c2c55c62
PrefabImporter:
guid: 1508ea9e5623cf14ab2378f0cef9e4f9
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/LIN/Animations/Drag Right Animation.anim (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8702846e8ccd4b34e9e500d748366282
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/LIN/Animations/Drag Up Animation.anim (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8731d87063872e443b687cb8fde04d4d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b46b59f307f451f4d828a8d3b4bb549f
guid: e9f04be805588144f91257ba68a51876
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 9100000

BIN
Assets/LIN/Animations/FingerImage.controller (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5905112edad17434fb13083581ef0f4f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 9100000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/LIN/Animations/Touch Animation.anim (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cd99c947dee3d52458ca54e58f038438
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/LIN/Housing Copy.unity (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

BIN
Assets/LIN/Prefabs/Player.prefab (Stored with Git LFS)

Binary file not shown.

BIN
Assets/LIN/Prefabs/TutorialExamplePanel.prefab (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum fingerAnimationType
{
None = 0,
Touch = 1,
DragUp = 2,
DragDown = 3,
DragRight = 4,
DragLeft = 5,
}
[RequireComponent(typeof(Animator))]
public class FingerAnimationController : MonoBehaviour
{
private static readonly int AnimationType = Animator.StringToHash("AnimationType");
public fingerAnimationType fingerAnimationType = fingerAnimationType.None;
private Animator animator;
private int _animType;
private void Awake()
{
animator = GetComponent<Animator>();
animator.SetInteger(AnimationType,(int)fingerAnimationType);
}
private void Update()
{
if ((int)fingerAnimationType == animator.GetInteger(AnimationType))
{
return;
}
animator.SetInteger(AnimationType,(int)fingerAnimationType);
}
}

View File

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

View File

@ -0,0 +1,15 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(InteractionAnimationPanelController))]
public class PanelTmpController : MonoBehaviour
{
InteractionAnimationPanelController interactionAnimationPanelController;
private void Awake()
{
interactionAnimationPanelController = GetComponent<InteractionAnimationPanelController>();
interactionAnimationPanelController.TutorialSleepAnimation();
}
}

View File

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

Binary file not shown.

View File

@ -11,7 +11,7 @@ public class TutorialPanelController : MonoBehaviour
[Header("튜토리얼 터치 타겟들")]
[SerializeField]
public GameObject[] touchTargets;
[Header("튜토리얼에서 보여줄 이미지들")]
[Header("튜토리얼에서 보여줄 이미지 혹은 판넬들")]
[SerializeField] private GameObject[] images;
public void setTutorialText(string tutorialText)
@ -38,4 +38,5 @@ public class TutorialPanelController : MonoBehaviour
{
images[index].SetActive(false);
}
}

View File

@ -12,41 +12,14 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: b22d834cf5e26e647be215074940d40e, type: 3}
m_Name: TutorialStep4
m_EditorClassIdentifier:
message: "\uC9C0\uAE08 \uD654\uBA74\uC740 \uC544\uBB34\uB370\uB098 \uD074\uB9AD\uD558\uBA74
\uC5C6\uC5B4\uC9D1\uB2C8\uB2E4."
timeout: 0
message:
timeout: 2
onStepBegin:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 9146572361147244306, guid: 66016880ee1ff09429065e570a748578,
type: 3}
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
m_MethodName:
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName:
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_Calls: []
onStepComplete:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 9146572361147244306, guid: 66016880ee1ff09429065e570a748578,
type: 3}
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
m_MethodName:
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName:
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
touchTargetIndex: 1
imageIndex: -1
nextStep: {fileID: 0}
m_Calls: []
touchTargetIndex: -1
imageIndex: 1
nextStep: {fileID: 11400000, guid: e3d4da4e50044c54394663ac9e7b2afa, type: 2}

View File

@ -0,0 +1,26 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b22d834cf5e26e647be215074940d40e, type: 3}
m_Name: TutorialStep5
m_EditorClassIdentifier:
message: "\uB2E4\uC591\uD55C \uC0C1\uD638\uC791\uC6A9\uC744 \uD1B5\uD574 \uB2A5\uB825\uCE58\uB97C
\uC62C\uB9AC\uACE0 \uB358\uC804\uC744 \uACF5\uB7B5\uD574\uBCF4\uC138\uC694."
timeout: 0
onStepBegin:
m_PersistentCalls:
m_Calls: []
onStepComplete:
m_PersistentCalls:
m_Calls: []
touchTargetIndex: 1
imageIndex: -1
nextStep: {fileID: 0}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e3d4da4e50044c54394663ac9e7b2afa
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant: