Alright so here's the situation, in my namespace, I'm trying to include the System.Collections namespace
The problem is when I try typing it in at the top, Visual Studio tells me using System.Collections Using Directive is unnecessary. both before and after I type in the code(and closing it and opening it again)
print("huh");
Visual Studio still tells me it's unnecessary and the print statement causes errors treating it like System.Collections was never included.
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.UI;
using System.Collections;
namespace X
{
namespace XText
{
public class XTextBasic
{
private bool createOnce = true;
private string gtnlaatRval = "";
private int count = 0;
public string getTextNLettersAtATime(string Str,float delay,int n = 1, int startval = 0)
{
if (createOnce)
{
gtnlaatRval = "";
createOnce = false;
count = startval;
}
print("err");
gtnlaatRval = Str.Substring(startval, count);
return gtnlaatRval;
}
}
}
Thanks in advance.
↧