- using UnityEngine;
- using System.Collections;
- public class MainProcess : MonoBehaviour {
- private struct tempStructure
- {
- public int tempIndex;
- public string tempName;
- }
- void Start ()
- {
- tempStructure xxx = new tempStructure();
- xxx.tempIndex = 1;
- xxx.tempName = "Name";
- Debug.log( xxx.tempIndex );
- Debug.log( xxx.tempName );
- }
- }
沒有留言:
張貼留言