Game create Day 20 coding program today coding is jump action & collision detection | using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerCtrl : MonoBehaviour { public float speed = 5; public float jumpForce = 400f; private Rigidbody2D rb2d; private Animator anim; private SpriteRenderer spRenderer; private bool isGround; // Start is called before the first frame update void Start() { this.rb2d = GetComponent<Rigidbody2D>(); this.anim = GetComponent<Animator>(); this.spRenderer = GetComponent<SpriteRenderer>; } // Update is called once per frame void Update() { ...
投稿
3月, 2020の投稿を表示しています