Пример #1
0
 public void SetScale(Vector3 scale)
 {
     if (CurrentlySelected != null)
     {
         CurrentlySelected.GetComponent <ScoreZoneSelectible>().SetScale(scale);
     }
 }
Пример #2
0
    public void OnSelect()
    {
        Debug.Log("On first select called");

        prefUIManager.LoadPrefs(CurrentlySelected.GetComponent <ScoreZoneSelectible>().SettingsContainer);

        ObjectSelected = true;
    }
    public void CancelMenu()
    {
        switch (buttonState)
        {
        case (ButtonState.First):

            if (InTargetMenu)
            {
                CurrentlySelected.GetComponent <SkillButton>().OnDeselect(null);
                InTargetMenu = false;
                CloseTargets();
                StartOptions();
                //close target menu and open first menu
            }

            //                InTargetMenu = false;

            break;

        case (ButtonState.Skills):
            if (InTargetMenu)
            {
                //close target menu and open skill menu
                CurrentlySelected.GetComponent <SkillButton>().OnDeselect(null);
                InTargetMenu = false;
                CloseTargets();
                SkillMenu();
            }
            else
            {    //close skill menu and reopen main buttons
                CloseSkills();
                StartOptions();
            }

            //                InTargetMenu = false;
            break;
        }
    }
Пример #4
0
 public void SetScoreType(ScoreZoneSettingsContainer.ScoreTypes type)
 {
     Debug.Log("Got updated scoring type of " + type.ToString());
     CurrentlySelected.GetComponent <ScoreZoneSelectible>().SetScoreType(type);
 }
Пример #5
0
 public void SetTeam(ScoreZoneSettingsContainer.Team team)
 {
     Debug.Log("Got updated team of " + team.ToString());
     CurrentlySelected.GetComponent <ScoreZoneSelectible>().SetTeam(team);
 }
Пример #6
0
 public void SetScore(float score)
 {
     Debug.Log("Got updated score of " + score);
     CurrentlySelected.GetComponent <ScoreZoneSelectible>().SetScore(score);
 }
Пример #7
0
 public void SetDestroyPref(bool val)
 {
     Debug.Log("Got updated destroy pref of " + val);
     CurrentlySelected.GetComponent <ScoreZoneSelectible>().SetDestroyPref(val);
 }
Пример #8
0
 public void SetReinstantationPref(bool val)
 {
     Debug.Log("Got updated reinstantiation pref of " + val);
     CurrentlySelected.GetComponent <ScoreZoneSelectible>().SetReinstantiationPref(val);
 }