public string CheckWHatSlotGot(NPCInBattlePro NPC, SlotBattle Slot) // kiem tra slot co gi { if (Slot.CheckNoNPC()) { return("No"); } else { if (CheckIfSameTeam(NPC, Slot.FindNPCInSlot().NPCPro)) { if (NPCNow.GetSlot() == Slot) { return("Self"); } else { return("Ally"); } } else { return("Enemy"); } } }
public void CheckForHighLight(SlotBattle Slot) { if (Slot.CheckNoNPC() || Slot.FindNPCInSlot().NPCPro.HP <= 0) { Slot.BlinkingColor.WhiteBlink(); } else { if (CheckIfSameTeam(NPCNow.NPCPro, Slot.transform.Find("NPCInbattle(Clone)").GetComponent <NPCInBattle>().NPCPro)) { if (NPCNow.GetSlot() != Slot) { Slot.BlinkingColor.GreenBlink(); // Ally } else { // Slot.BlinkingColor.YellowBlink(); // Self } } else { Slot.BlinkingColor.RedBlink(); } } }