Пример #1
0
    public bool ObjectInPowerPlant(Vector3 pos)
    {
        if (Assembly == null)
        {
            return(false);
        }

        List <CSCommon> cscs = Assembly.AllPowerPlants;

        for (int i = 0; i < cscs.Count; i++)
        {
            CSPowerPlant pp = cscs[i] as CSPowerPlant;
            if (pp.InRange(pos))
            {
                return(true);
            }
        }

        return(false);
    }