示例#1
0
        void OnMouseDown()
        {
            if (Support.interactionEnable)
            {
                GameObject rule_object = gameObject.transform.parent.gameObject;
                if (isDestroy)
                {
                    SendMessageUpwards("DeleteRule", rule_object);
                    //main.RemoveRule(rule_object.GetComponent<Rule>());
                }

                else
                {
                    main.SwitchRule(gameObject);
                    Report.ActivateRule(GameData.GetInstance().level_string, gameObject.GetComponent <RuleButon>().RULE);
                }
            }
        }