예제 #1
0
 public void SpawnFloatingCombatText(NPC TargetDestinationNPC, DamageReport dmgReport, DisplayMode displayMode)
 {
     if (TargetDestinationNPC != null)
     {
         GameObject         fct = objectPoolController.InstantiateFloatingCombatText(TargetDestinationNPC);
         FloatingCombatText floatingCombatTextScript = fct.GetComponentInChildren <FloatingCombatText>();
         floatingCombatTextScript.displayMode = displayMode;
         floatingCombatTextScript.dmgReport   = dmgReport;
         floatingCombatTextScript.Init();
         objectPoolController.DestroyFloatingCombatTextAfterSeconds(1f, fct);
     }
 }