-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
105 changed files
with
196 additions
and
160 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEngine.SceneManagement; | ||
|
||
public class TutorialCtrl : MonoBehaviour { | ||
|
||
[SerializeField] | ||
Save _save; | ||
|
||
[SerializeField] | ||
Transform[] _targets; | ||
|
||
int _index = 0; | ||
[SerializeField] | ||
bool _isRun = false; | ||
|
||
void Awake () | ||
{ | ||
_save.isFirst = false; | ||
} | ||
|
||
public void Touch() | ||
{ | ||
StartCoroutine("Pass"); | ||
} | ||
|
||
private IEnumerator Pass() | ||
{ | ||
if (_isRun) | ||
yield break; | ||
_isRun = true; | ||
if (_index.Equals(1)) | ||
{ | ||
SceneManager.LoadScene("InGame"); | ||
yield break; | ||
} | ||
|
||
float time = 0f; | ||
while(true) | ||
{ | ||
if (_targets[_index].localPosition.x.Equals(-720)) | ||
break; | ||
time += Time.deltaTime; | ||
_targets[_index].localPosition = ALLerp.Lerp(_targets[_index].localPosition, new Vector3(-720f, 0f, 0f), time); | ||
yield return null; | ||
} | ||
_index++; | ||
_isRun = false; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class Save : MonoBehaviour { | ||
|
||
public bool isFirst = true; | ||
} |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class TextRandom : MonoBehaviour | ||
{ | ||
[SerializeField] | ||
UnityEngine.UI.Text creditText; | ||
|
||
void Awake() | ||
{ | ||
int[] arr = new int[6]; | ||
|
||
for (int i = 0; i < 6; i++) | ||
arr[i] = i; | ||
|
||
for (int i = 0; i< 6; i++) | ||
{ | ||
int n = Random.Range(0, 6 - i); | ||
switch (arr[n]) | ||
{ | ||
case 0: | ||
creditText.text += "그래픽 : 박준철\n"; | ||
break; | ||
case 1: | ||
creditText.text += "프로그래밍 : 김덕원\n"; | ||
break; | ||
case 2: | ||
creditText.text += "기획 : 양도훈\n"; | ||
break; | ||
case 3: | ||
creditText.text += "기획 : 강의택\n"; | ||
break; | ||
case 4: | ||
creditText.text += "프로그래밍 : 강예찬\n"; | ||
break; | ||
case 5: | ||
creditText.text += "사운드 : 김혁수\n"; | ||
break; | ||
} | ||
int temp = arr[n]; | ||
arr[n] = arr[5-i]; | ||
arr[5-i] = temp; | ||
} | ||
|
||
creditText.text += "크레딧의 순서는 랜덤입니다."; | ||
} | ||
} |
Binary file not shown.
Oops, something went wrong.