private void Awake() { animator = GetComponent <Animator> (); motor = GetComponent <PlayerMotor> (); Entity = new Entity(gameObject); Entity.SetId("000000"); player = new Player(gameObject); AssetId = "00000000"; UniqueId = "00000000"; GameObject = gameObject; Transform = transform; var script = new Script(); LuaUtilities.ApplyDefaultValues(script); Script = new LuaScript { code = string.Empty, script = script }; ActiveComponents = GetComponents <NativeComponent> (); }