Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        if (game_master.game_master_obj)
        {
            my_game_master = (game_master)game_master.game_master_obj.GetComponent("game_master");
            //selet the rule
            if (virtual_money_cost <= 0)
            {
                if (my_game_master.my_ads_master.ads_when_reach_a_check_point.this_ad_is_enabled)
                {
                    activation_cost_selected = activation_cost.unity_ad;
                }
                else
                {
                    activation_cost_selected = activation_cost.free;
                }
            }
            else             //can use money to activate the checkpoint
            {
                if (my_game_master.my_ads_master.ads_when_reach_a_check_point.this_ad_is_enabled)
                {
                    activation_cost_selected = activation_cost.virtual_money_or_unity_ad;
                }
                //else
                //activation_cost_selected = activation_cost.virtual_money;
            }
        }

        checkpoint_triggered = false;
        checkpoint_enabled   = false;
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        if (game_master.game_master_obj)
        {
            my_game_master = (game_master)game_master.game_master_obj.GetComponent("game_master");
            //selet the rule
            if (virtual_money_cost <= 0)
            {
                if (my_game_master.my_ads_master.ads_when_reach_a_check_point.this_ad_is_enabled)
                {
                    activation_cost_selected = activation_cost.unity_ad;
                }
                else
                {
                    activation_cost_selected = activation_cost.free;
                }
            }
            else             //can use money to activate the checkpoint
            {
                if (my_game_master.my_ads_master.ads_when_reach_a_check_point.this_ad_is_enabled)
                {
                    activation_cost_selected = activation_cost.virtual_money_or_unity_ad;
                }
                //else
                //activation_cost_selected = activation_cost.virtual_money;
            }
        }

        my_game_uGUI         = GameObject.FindGameObjectWithTag("_gui_").GetComponent <game_uGUI>();
        checkpoint_triggered = false;
        checkpoint_enabled   = false;
        //base_color = GetComponent<Renderer>().material.color;
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        if (game_master.game_master_obj)
            {
            my_game_master = (game_master)game_master.game_master_obj.GetComponent("game_master");
            //selet the rule
            if (virtual_money_cost <= 0)
                {
                if (my_game_master.my_ads_master.ads_when_reach_a_check_point.this_ad_is_enabled)
                    activation_cost_selected = activation_cost.unity_ad;
                else
                    activation_cost_selected = activation_cost.free;
                }
            else //can use money to activate the checkpoint
                {
                if (my_game_master.my_ads_master.ads_when_reach_a_check_point.this_ad_is_enabled)
                    activation_cost_selected = activation_cost.virtual_money_or_unity_ad;
                //else
                    //activation_cost_selected = activation_cost.virtual_money;
                }
            }

        my_game_uGUI = GameObject.FindGameObjectWithTag("_gui_").GetComponent<game_uGUI>();
        checkpoint_triggered = false;
        checkpoint_enabled = false;
        //base_color = GetComponent<Renderer>().material.color;
    }