【发布时间】:2020-07-04 05:05:09
【问题描述】:
我正在尝试将脚本与我的对象统一添加。但似乎“无法添加脚本行为 AssemblyInfo.cs。脚本需要从 MonoBehavior 派生”。 请问我该如何解决这个问题..
我已经检查了相同的脚本和类名。此外,我已经将代码复制并粘贴到另一个文件中,但它没有修复。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
void Start()
{
}
void Update()
{
}
}
【问题讨论】: