Commit 37fb4b2b authored by 15박보승's avatar 15박보승

중간 저장

parent 41566948
This diff is collapsed.
fileFormatVersion: 2
guid: 47d75e39fa55e84499abe3fb1f175136
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
private int _score;
public int Score
{
get { return _score; }
set { _score = value; }
}
private void Start()
{
Note.OnNoteHit += UpdateScore;
}
public void StartStage()
{
}
public void EndStage()
{
}
private void UpdateScore(NoteHitType type, int score)
{
Score += score;
}
}
fileFormatVersion: 2
guid: 4057548dd43fd5a408e7173586a0c6bb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IngameUIManager : MonoBehaviour
{
private void Start()
{
Note.OnNoteHit += OnNoteHit;
}
public void OnNoteHit(NoteHitType type, int score)
{
}
}
fileFormatVersion: 2
guid: b26911b9b7f765148874d3cea86781fc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public enum NoteHitType
{
PERFECT,
GOOD,
BAD,
MISS
}
public class Note : MonoBehaviour
{
public static Action<NoteHitType, int> OnNoteHit;
private float remainedTime = 5;
public Vector3 startPoint = new Vector3(0, 0, 50);
public float maxRemainedTime = 5;
public float perfectZ = 10;
private void Start()
{
transform.position = startPoint;
}
public void NoteHit()
{
OnNoteHit(NoteHitType.PERFECT, 300);
}
public void SetPosition(float remainedTime)
{
transform.position = Vector3.Lerp(startPoint, new Vector3(startPoint.x, startPoint.y, perfectZ), remainedTime / maxRemainedTime);
}
}
fileFormatVersion: 2
guid: 8f10999abdd62af4b823d8a3f9ced054
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment