添加了Player脚本

This commit is contained in:
Roman 2022-03-12 15:56:25 +08:00
parent 68db9d5711
commit a454af8653
7 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 81dbcde0f90df4e9ba9ca2794490e57a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: fd02c799f3f5c4c83b2fc26c105a3821
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f597f19f656ba56eae4f6a3a7cc528f4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 48e08dc33330d11e9d4a1b246c52e4f6
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ed09910c0094cb27be8f3ca264680da3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: cc355dd4cf1e6173beaeb22c2858cbe1
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,46 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
public class Player : PlayerControl
{
/// <summary>
/// 鯤소먼竟栖
/// </summary>
Rigidbody2D m_rigidbody;
/// <summary>
/// 鯤소놓迦뺏栖
/// </summary>
override protected void Start()
{
base.Start();
m_rigidbody = gameObject.GetComponent<Rigidbody2D>();
}
void Update()
{
}
/// <summary>
/// 路畇왠齡변鑒栖
/// </summary>
/// <param name="ctx"></param>
override protected void OnMove(InputAction.CallbackContext ctx)
{
base.OnMove(ctx);
}
override protected void OnAtk() {
}
override protected void OnJump() {
}
override protected void OnInteract() {
}
}