using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI;
public class Walker : MonoBehaviour {
// Use this for initialization void Start () { } // Update is called once per frame void Update () {
}
public void onClick_Walker(){ GetComponent<Rigidbody2D>().AddForce(Vector3.up * 400f); //점프모션 GetComponent<Animator>().SetTrigger("Jump_t"); //애니메이션 트리거 작동 } }
|