void LateUpdate() { if (animFixer != null && !animFixer.update()) { animFixer = null; } }
void Start() { if (!Builder.prefab || CraftData.GetTechType(Builder.prefab) != FloatingCargoCrate.TechType) // don't play animation for ghost model { animFixer = new AnimFixer(gameObject.getChild("3rd_person_model/floating_storage_cube_tp")); } }