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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using System; | |
using System.Linq; | |
public class DrawLines : MonoBehaviour | |
{ | |
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
void ShiftPoints() | |
{ | |
//max카운트 넘어가면 시프팅을 시작한다 | |
if (AllPoints.Count <= MaxCount) | |
return; | |
for (int i = 0; i < MaxCount; i++) | |
{ | |
AllPoints[i] = AllPoints[i + 1].y; | |
} |
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
public FileToDict() | |
{ | |
var lines = File.ReadAllLines("fileName.txt"); | |
var dict = lines.Select(line=>line.Split('=')) | |
.ToDictionary(x=>x[0],x=>x[1]); | |
(왼쪽)=키,(오른쪽)=발류 | |
} |
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
기존 코드 | |
public delegate void CoilLineState(float num1,float num2); | |
public void OnCoilLineState(float num1,float num2) | |
{ | |
EntryCoil.CoilLookAtOnShiftingLine(num1); | |
DeliveryCoil.CoilLookAtOnShiftingLine(num2); | |
} | |
params로 변경후 |
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
이전 메터리얼 저장 | |
{ | |
Material[] newMat; | |
newMat = Equip.GetComponent<MeshRenderer>().materials; | |
Arrow.GetComponent<Panel_TutoInfo>().mat_Prev = newMat; | |
} |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System; | |
public class TextShift : MonoBehaviour | |
{ | |
public Material material; | |
public GameObject RootObj; | |
public CapsuleCollider[] allCoilliders; |
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
IEnumerator CoilShulink(GameObject TargetObj, float TargetValue) | |
{ | |
float offset = 0.02f; | |
while (TargetObj.transform.localScale.x >= TargetValue) | |
{ | |
if (TargetObj.transform.localScale.x > TargetValue) | |
{ | |
TargetObj.transform.localScale -= new Vector3(offset * Time.deltaTime, offset * Time.deltaTime, 0); | |
} |
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
//보드쌓는 방식 x,y를 거꾸로 보고 해결하려고 해서 계속 에러가 | |
#include <string> | |
#include <vector> | |
using namespace std; | |
int solution(vector<vector<int>> board, vector<int> moves) { | |
int answer = 0; | |
vector<int> result; |
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
//거의 인터넷 보고 푼 수준 | |
//최대값 정렬하는데서 엄청 해맴 | |
#include <string> | |
#include <vector> | |
using namespace std; | |
vector<int> solution(vector<int> answers) { |
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
using System; | |
public class Solution { | |
public int solution(int n, int[] lost, int[] reserve) { | |
int answer = 0; | |
int[] t_lost = new int[n]; | |
int[] t_reserve = new int[n]; | |
for(int i=0;i<n;i++) |
OlderNewer