Unity3D之人物头顶名称与血条更新与绘制
https://wenku.baidu.com/view/1ac8f9bfda38376bae1fae1e.html
Unity利用MovieTexture实现视频的播放
https://blog.csdn.net/weixin_43492764/article/details/85246524
切换武器
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ChanceWeapon : MonoBehaviour {
public GameObject weapon_01;
public GameObject weapon_02;
void Start ()
{
weapon_01.SetActive(false);
weapon_02.SetActive(true);
}
void Update () {
if (Input.GetKeyDown ("0")){
switchWeaponsPlease();
}
}
void switchWeaponsPlease(){
if(weapon_01.activeSelf){
weapon_01.SetActive(false);
weapon_02.SetActive(true);
}
else
{
weapon_01.SetActive(true);
weapon_02.SetActive(false);
}
}
}