Exemplo n.º 1
0
        private float GetOwnerDifficulty(NebulaObject owner)
        {
            float   d       = 1.0f;
            BotShip botShip = owner.GetComponent <BotShip>();

            if (botShip != null)
            {
                if (owner.HasTag((byte)PS.Difficulty))
                {
                    d = owner.resource.GetDifficultyMult((Difficulty)(byte)owner.Tag((byte)PS.Difficulty));
                }
            }
            return(d);
        }