See the answer I gave [here][1]. You're error is `bce0048` and there are other questions on the same thing. Once you have read my answer, then look at you variable declarations around line 10 in the question, and you'll see that they are all untyped. So, at line 112 in the script you provide, you'll see you are trying to treat `stepWater` as an array, but you've not declared it as an array. Well, you've not provided any type at all. Perhaps you meant a `:` and not an `=`?
[1]: http://answers.unity3d.com/questions/279757/bce0048-type-object-does-not-support-slicing.html
↧