using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
void Awake()
{
}
void OnEnalbe() //(로그인)
{
}
// Start is called before the first frame update
void Start() // (시작)
{
Debug.Log("hello!!");
}
void FixedUpdate() // (이동)
{
}
// Update is called once per frame
void Update() //사양에 따른 업데이트 (사냥)
{
}
void LateUpdate() //(점수획득 경험치획득)
{
}
void OnDisable() // 총을 맞고 없어질때(로그아웃)
{
}
void OnDestory() // 마지막 패치
{
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
void Awake()
{
}
void OnEnalbe() //(로그인)
{
}
// Start is called before the first frame update
void Start() // (시작)
{
Debug.Log("hello!!");
}
void FixedUpdate() // (이동)
{
}
// Update is called once per frame
void Update() //사양에 따른 업데이트 (사냥)
{
if (Input.anyKeyDown)
Debug.Log("아무키 클릭");
if (Input.anyKey)
Debug.Log("아무키");
//====키보드====
if (Input.GetKeyDown(KeyCode.Return))
Debug.Log("엔터");
if (Input.GetKey(KeyCode.LeftArrow))
Debug.Log("왼쪽이동");
if (Input.GetKeyUp(KeyCode.RightArrow))
Debug.Log("오른쪽 이동");
//====마우스=== //매게변수 0은 왼쪽, 1은 오른쪽
if (Input.GetMouseButtonDown(0))
Debug.Log("왼쪽입력 클릭");
if (Input.GetMouseButton(0))
Debug.Log("왼쪽입력 누르고");
if(Input.GetMouseButtonUp(0))
Debug.Log("왼쪽입력 뗀다");
//====버튼방식===
// InputManager // 버튼 개수 18개, Horizontal(횡이동), Vertical(종이동)
if (Input.GetButtonDown(“Jump”)) // 안써도 됨
Debue.Log(“스페이스”);
}
void LateUpdate() //(점수획득 경험치획득)
{
}
void OnDisable() // 총을 맞고 없어질때(로그아웃)
{
}
void OnDestory() // 마지막 패치
{
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// Start is called before the first frame update
void Start() // (시작)
{
Vector3 vec = new Vector3(0, 5, 0);
transform.Translate(vec);
}
// Update is called once per frame
void Update() //사양에 따른 업데이트 (사냥)
{
}
}