![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#面向对象
文章平均质量分 93
枫闲言
言必行 行必果
展开
-
unity插件ml-agent的安装和使用
感觉机器学习将占领游戏AI的趋势和可能性。Unity Machine Learning Agents (ML-Agents) 是一款开源的 Unity 插件, 使得我们得以在游戏环境和模拟环境中训练智能 agents。它可以使用 reinforcement learning(强化学习)、imitation learning(模仿学习)、neuroevolution(神经进化)或其他机器学习方...原创 2019-11-12 18:03:34 · 1857 阅读 · 0 评论 -
Unity3D分离子物体解除父子关系/也可实现对子物体的删除
关于解除父子关系首先看下官方给出的讲解代码。using UnityEngine;using System.Collections;public class example : MonoBehaviour { public void Awake() { transform.DetachChildren();//解除父子关系 Destroy(gameObject);//清除gam...原创 2019-03-04 21:49:31 · 13423 阅读 · 2 评论 -
C#产生随机数(成对出现的无序随机数)
首先看这段代码 private ArrayList CreateRandomDoublePlayCarsd() { ArrayList a1 = new ArrayList(); //产生10个随机数1-9之间的 for (int i = 0; i < 10; i++) {...原创 2019-02-25 22:33:28 · 501 阅读 · 0 评论 -
Unity-时钟的实现
这里只提供源码,场景布局的话,简单的摆放一下就行了源码如下:using System.Collections;using System.Collections.Generic;using UnityEngine;//using UnityEngine.UI;using System;public class test : MonoBehaviour { // Use...原创 2019-03-11 17:36:49 · 1325 阅读 · 0 评论 -
C#存放点坐标
这个问题,可以通过创建Point点的类来表示点坐标。然后利用List来存放Point的点的集合。对点的一系列操作通过List来完成。具体实现如下:class Program { static void Main(string[] args) { Point data = new Point(); Li...原创 2019-03-25 21:48:49 · 7966 阅读 · 2 评论