top move
2020-03-05
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public float moveSpeed = 3;//属性值
private SpriteRenderer sr;//引用
private void Awake()
{
sr = GetComponent
}
public Sprite[] tankSprite;//上,右,下,左。
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
private void FixedUpdate()
{