Hi everyone,
I'm actually working in a script including a class whith a matrix of int as internal variable.
Here a compacted code:
When I assign 0 to mat[0,0] I get an error: NullReferenceException: Object reference not set to an instance of the object.
Thank you for your help.
I'm actually working in a script including a class whith a matrix of int as internal variable.
Here a compacted code:
Code (JavaScript):
- function Start () {
- var test = new Ctest();
- }
- function Update () {
- }
- class Ctest{
- var mat:int[,];
- function Ctest(){
- mat[0,0]=0;
- }
- }
Thank you for your help.