DamageDealer.CheckOrigin C# (CSharp) Méthode

CheckOrigin() public méthode

public CheckOrigin ( Transform t ) : bool
t Transform
Résultat bool
    public bool CheckOrigin(Transform t)
    {
        bool ok = this.transform.root != t;
        if(ok && this.combatant != null &&
            this.combatant.prefabInstance != null)
        {
            ok = this.combatant.prefabInstance.transform.root != t;
        }
        return ok;
    }