コード例 #1
0
 private void CombatSystemUnitDebugLogger(UnitCombatSystem unit)
 {
     if (unit == null)
     {
         return;
     }
     Debug.Log(
         $"Unit name: {unit.name}, team: {unit.GetTeam()}, POSITION: X:{unit.transform.position.x} Y:{unit.transform.position.y} ");
 }
コード例 #2
0
 public bool IsEnemy(UnitCombatSystem unitGridCombat)
 {
     return(unitGridCombat.GetTeam() != team);
 }