该项目是使用Unity DOTS 实现的经典 Pong 游戏的简单实现。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
416 B

using System.Collections;
using System.Collections.Generic;
using Unity.Entities;
using UnityEngine;
public struct PlayerInputData : IComponentData
{
public KeyCode upKey;
public KeyCode downKey;
}
public struct PlayerData : IComponentData
{
public int playerID;
}
public struct PaddleMovementData : IComponentData
{
public int direction;
public float speed;
}
public struct BallTag : IComponentData
{ }