Hello, my problem is that i have a class that inherits from a base class that inherits from monobehaviour, and when i override start inside of the child class, it never gets called.
Im using Unity 3.5 release and im not sure if that might be a problem with the build.
Thanks for the quick response her is the child objects code
using UnityEngine;
using System.Collections;
public class Grenadier : Character {
void Start () {
CharacterCombo = ComboManager.GetCombo("Grenadier");
CharacterCombo.Init(this);
Name = "Grenadier";
Speed = 3.5f;
Defense = 4;
ForceResistance = 16;
Jump = 24;
MaxJumps = 1;
GameManager manager = GameManager.GetGameManager();
manager.ItemSpawn("DazeBomb"); // Testing if Start is even being called :L
}
}
Character (Base Class) doesnt have any code for Start, whats really wierd is my code works in the editor just not when i export it.
Looked into the output_log file, after building the windows build and it did seem to print out what i believe is an error
ArgumentException: Encoding name 'Windows-1252' not supported
Parameter name: name
at System.Text.Encoding.GetEncoding (System.String name) [0x00000] in <filename unknown>:0
at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream) [0x00000] in <filename unknown>:0
at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Xml.XmlInputStream:.ctor (System.IO.Stream)
at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Xml.XmlStreamReader:.ctor (System.IO.Stream)
at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.Stream stream) [0x00000] in <filename unknown>:0
at ComboManager.GetCombo (System.String _name) [0x00088] in C:\Users\Admin\Desktop\Battle Brawl\Assets\Battle Assets\Scripts\Managers\ComboManager.cs:25
at Grenadier.Start () [0x00000] in C:\Users\Admin\Desktop\Battle Brawl\Assets\Battle Assets\Scripts\CharacterArchetypes\Grenadier.cs:7
(Filename: C Line: 0)