본문 바로가기

NOTE/SaveSource19

[SaveSource] TutorialManager using UnityEngine;using System.Collections.Generic;using System.Collections;using System; public enum TutorialState{ // None은 제외 하고 Step(단계) 순서대로 정렬해야함 None, StartTutorial, MinimapClose, GunGrab, GunShoot, GunReload, GunDrop, GatlingGrab, GatlingShoot, GatlingDrop, SpecialGrab, SpecialThrow, EndTutorial,} class TutorialManager : MonoSingleTon{ public class TutorialStep { private TutorialState m_.. 2017. 2. 8.
[Save Source] UIResult using UnityEngine;using UnityEngine.UI;using System.Collections.Generic;using System;using UnityEngine.SceneManagement; [System.Serializable]public class RankingText{ public Text m_score; public Text m_time;} [System.Serializable]public class MyResult{ public Text stageName; public Text stageResult; public Text clearTime; public Text totalScore; public Text myRanking;} public class UIResult : UI.. 2017. 1. 26.
[SaveSource] StageRankManager 스테이지별 랭킹관리, Json 파일 입출력 using UnityEngine;using System.Collections.Generic;using UnityEngine.SceneManagement;using System.IO; public enum StageType{ Cpt, Desert, Desert2, Ruin, Ruin2, Hope, Hope2, None} [System.Serializable]public class ClearData{ public string stage; public int score; public float time; public ClearData(string stage, int score, float time) { this.stage = stage; this.score = sco.. 2017. 1. 20.
[SaveSource] CameraOrbit 에셋에 포함되어있던 유용한 소스 : 타겟을 중점으로 마우스 회전하며 볼 수 있는 스크립트123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778using UnityEngine;using System.Collections; public class CameraOrbit : MonoBehaviour{ public Transform target; public float distance = 2f; public float lerpSpeed = 3f; public bool raycastedDistance = fa.. 2017. 1. 12.