Class CustomSkill
네임스페이스: Game.Scripts
어셈블리: Assembly-CSharp.dll
Syntax
[MoonSharpUserData]
public class CustomSkill : ScriptTweening
생성자
CustomSkill(ShotAnimation, MyPlayerUnit)
선언
public CustomSkill(ShotAnimation shotAni, MyPlayerUnit unit)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
ShotAnimation | shotAni | |
Game.Unit.MyPlayerUnit | unit |
프로퍼티
collider
원형범위의 충돌을 관리하는 ScriptCircleCollider
를 반환합니다.
선언
public CircleCollider collider { get; }
프로퍼티 값
타입 | 설명 |
---|---|
CircleCollider |
color
스킬의 색상을 설정합니다.
선언
public Color color { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
Color |
maxCollisions
충돌 횟수 제한
선언
public int maxCollisions { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
int |
position
스킬의 위치를 나타내는 x,y값
선언
public Point position { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
Point |
scale
스킬의 스케일을 설정합니다
선언
public Point scale { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
Point |
visible
스킬의 활성화 여부를 설정합니다.
선언
public bool visible { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
함수
AttachToUnit(Point, Unit)
유닛에 컨트롤 추가하기
선언
public virtual void AttachToUnit(Point position, Unit unit)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Point | position | 생성될 위치 |
Unit | unit | 유닛 |
Destroy()
스킬을 삭제합니다.
선언
public void Destroy()
DOColor(Color, float)
색상 효과를 줍니다
선언
public override ScriptTweener DOColor(Color color, float duration)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Color | color | 색상 |
float | duration | 시간 (초) |
반환
타입 | 설명 |
---|---|
ScriptTweener |