C#Lamda

//添加任意参数的函数
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using UnityEngine.UI;

public class EventAndLamda : MonoBehaviour {


    void Start () { 
        //lamda方式可以添加包含任意参数的函数,非常方便
        GetComponent

你可能感兴趣的:(C#Lamda)