Exemplo n.º 1
0
        public override bool Effect(CGObject s, Actor p1, Actor p2)
        {
            CGObject source_obj = GetFromSource(source, source_string, s, p1, p2);

            if (source_obj != null)
            {
                Log.Print(this, "Destroying " + source_obj.CGType);

                source_obj.Destroy();

                return(true);
            }

            Log.Warning(this, "Destroy Action Failed");
            return(false);
        }