im using RemoveAt to remove a string from an array. im using somthing like…
using UnityEngine;
using System.Collections;
using System;
public class network : MonoBehaviour {
public string[] Codes;
public string myCode;
public bool removeCode;
void Update(){
if(removeCode){
RemoveAt(Codes, FindIndex(Codes, myCode));
}
}
public int FindIndex<T>(T[]codes, T code){
return Array.IndexOf(codes, code);
}
void RemoveAt<T>(T[]codes, int index){
removeCode = false;
}
}
Im not sure what to put in RemoveAt to remove the string from the Array, but it doesnt work as it is.