Skip to content

Instantly share code, notes, and snippets.

View geniikw's full-sized avatar
🇰🇷

Kim Giwon geniikw

🇰🇷
  • 경기도 고양, 대한민국
View GitHub Profile
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Spine.Unity;
using UnityEngine.UI;
public static class CC
{
/// <typeparam name="TOwner">보간을 값을 가지고 있는 대상</typeparam>
public class Battle<T1,T2> where T1:Character where T2 : Character {
  T1 _c1;
  T2 _c2;
  
  public Battle(T1 c1, T2 c2){
    _c1 = c1;
 _c2 = c2;
public class ThisIsClass{  
    public int power = 0;  
}

public struct ThisIsStruct{
    public int power = 0;
}

public static class Program{

[gameObject.transform.position.y += 100;]가 불가능한 이유

gameObject.transform.position = 10;마저도 안된다.

왜 저게안될까? 생각보도록 하자

transform.position이란? Property에 대하여

Transform은 유니티엔진에서 객체의 위치정보를 관리하는 클래스이다. position은 그 Transform의 프로퍼티로 내부 소스를 볼 수 없어서 조심스럽지만 아마도(?) 이렇게 되어 있을 것이다. 아님 말고

@geniikw
geniikw / CoroutineChain.cs
Last active October 18, 2022 08:00
Unity3d, CoroutineChain
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using geniikw.CChain;
using System;
using Object = UnityEngine.Object;
#region Accessor
/*
CoroutineChain (v0.2.1) author - [email protected]