public override void Start() { GameObject Temp_go = GetLinkedObject("enemies_manager"); if (Temp_go == null) { Debug.Log("[error] Gameobject enemies_manager not found (EnemyShield_BT)"); } else { EnemiesManager enemy_manager = Temp_go.GetComponent <EnemiesManager>(); if (enemy_manager == null) { Debug.Log("[error] EnemyShield_BT: enemies_manager is not detected"); } else { enemy_manager.AddShieldEnemy(gameObject); } } if (texture_type == 0) { enemy_mat_sword = GetMaterialByName("Alpha1_ShieldEnemy_Material_21_04"); } else if (texture_type == 1) { enemy_mat_sword = GetMaterialByName("Alpha1_ShieldEnemy2_Material_21_04"); } audio_comp = GetComponent <CompAudio>(); shield_name = GetLinkedObject("shield_name"); base.Start(); base.DeactivateHUD(shield_name); }