,当我把下面的代码从HexConverter - Unify Community Wiki string hex = color.r.ToString("X2") + color.g.ToString("X2") + color.b.ToString("X2");
这让我异常: FormatException: The specified format 'X2' is invalid
我试
我很困惑和好奇coroutines(在Unity3D和其他地方)如何工作。协程是一个新的线程? Unity的documentation他们说: 协程是一个函数,可以暂停它的执行(yield),直到给定的YieldInstruction完成。 他们有C#示例here: using UnityEngine;
using System.Collections;
public class examp