top move

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()
{

Hello Gridea

👏 欢迎使用 Gridea
✍️ Gridea 一个静态博客写作客户端。你可以用它来记录你的生活、心情、知识、笔记、创意... ...