Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- [ExecuteInEditMode]
- public class TestAnything : MonoBehaviour {
- public struct bobStructure
- {
- public float mebob;
- public int[] bob;
- }
- public bobStructure bobs = new bobStructure[12];
- void Start() {
- for (int i = 0; i < bobs.Length; ++i)
- {
- bobs[i].bob = new int[5];
- }
- bobs[2].bob[3] = 12;
- bobs[1].bob[3] = 6;
- }
- void Update()
- {
- Debug.Log(" "+ bobs[2].bob[3]);
- Debug.Log(" "+ bobs[1].bob[3]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment