Class Controller
게임에서 이동을 담당하는 컨트롤러 클래스
네임스페이스: Game.Scripts.UI
어셈블리: Assembly-CSharp.dll
Syntax
[MoonSharpUserData]
public class Controller : BaseControl
생성자
Controller()
게임에서 이동을 담당하는 컨트롤러 클래스
선언
public Controller()
프로퍼티
backgroundImage
컨트롤러 배경 이미지 경로
선언
public string backgroundImage { set; }
프로퍼티 값
타입 | 설명 |
---|---|
string |
ball
내부 핸들 컨트롤
선언
public BaseControl ball { get; }
프로퍼티 값
타입 | 설명 |
---|---|
BaseControl |
ballImage
내부 핸들 이미지 경로
선언
public string ballImage { set; }
프로퍼티 값
타입 | 설명 |
---|---|
string |
canJump
플레이어의 점프 여부를 설정합니다.
선언
public bool canJump { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
touchMoveVisible
터치 컨트롤의 활성화/비활성화 여부를 가져오거나 설정합니다.
선언
public bool touchMoveVisible { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
visible
게임에서 이동을 담당하는 컨트롤러 클래스
선언
public override bool visible { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
재정의
함수
SetControllerImage(string, string)
컨트롤러 이미지 변경
선언
public void SetControllerImage(string backGroundPath = "", string ballPath = "")
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
string | backGroundPath | 배경 이미지경로 |
string | ballPath | 볼 이미지 경로 |