Esempio n. 1
0
        public static void OnBirth(KotlAutomaton automaton, AutomatonStatue statue)
        {
            if (Statues == null)
            {
                Statues = new Dictionary <KotlAutomaton, AutomatonStatue>();
            }

            if (!Statues.ContainsKey(automaton))
            {
                Statues[automaton] = statue;
            }
        }
Esempio n. 2
0
        public override bool OnBeforeDeath()
        {
            if (!Controlled)
            {
                if (Region.IsPartOf("KotlCity"))
                {
                    AutomatonStatue.OnDeath(this);
                }
            }

            return(base.OnBeforeDeath());
        }