C#编程练习

贡献者:Delicious 类别:英文 时间:2021-01-24 20:23:12 收藏数:8 评分:0
返回上页 举报此文章
请选择举报理由:




收藏到我的文章 改错字
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using GTA;
using GTA.Math;
using GTA.Native;
namespace TutorialScript //Your Mod Name Here
{
public class Main : Script
{
public Main()
{
Tick += onTick;
KeyDown += onKeyDown;
}
private void onTick(object sender, EventArgs e)
{
}
private void onKeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.NumPad7)
{
if (Game.Player.WantedLevel == 0)
{
UI.ShowSubtitle("You are not wanted");
}
else
{
Game.Player.WantedLevel = 0;
}
}
}
}
}
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
文章热度:
文章难度:
文章质量:
说明:系统根据文章的热度、难度、质量自动认证,已认证的文章将参与打字排名!

本文打字排名TOP20

登录后可见

用户更多文章推荐