- 博客(6)
- 收藏
- 关注
原创 Unity递归查找子物体
//递归查找子物体using System.Collections;using System.Collections.Generic;using UnityEngine;public class RecursionFind : MonoBehaviour {public Transform parent;void Start () {FindChild(“Child”, parent...
2019-07-12 23:27:20 781
原创 C# 数组的增删查改
//数组的增删查改using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;namespace 数组的增删查改_Person{public class Person {...
2019-07-11 22:34:02 4205
原创 C#控制方块的移动windows
using System;namespace 方块移动{struct Vector2{public int x, y;public Vector2(int x, int y){this.x = x;this.y = y;}}class GameObject{private Vector2 position;private Vector2 size;private C...
2019-07-11 22:06:08 1441
原创 C#继承
//C#继承//继承类using System;using System.Collections.Generic;using System.Text;namespace ConsoleApp3{public class Father{int x = 1;public virtual void Reply(){Console.WriteLine(“father reply”)...
2019-07-11 12:37:15 198
原创 C#字符串翻转
//字符转翻转“I am a student”namespace Split{class Program{static void Main(string[] args){string A = “I am a student”;string[] arr = A.Split(’ ');for (int i = 0; i < arr.Length; i++){Console....
2019-07-11 11:18:57 350
原创 C#快排
快速排序//快排方法类namespace Q{class QuickSort1{//快速排序public void Quicks(int[] arr, int low, int high){if (low >= high){return;}int first = low;int last = high;int key = arr[low];while (fir...
2019-07-10 20:06:49 448
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人