Exemple #1
0
    void DelegateCharactersAndSurvivors()
    {
        // Character
        {
            Character            character    = characterManager.GetCharacter();
            Traits_Panel_Manager panelManager = traitsPanels[0].GetComponent <Traits_Panel_Manager>();
            panelManager.TargetCharacter(character);
        }

        // Survivors
        foreach (GameObject statusPanel in traitsPanels)
        {
            Traits_Panel_Manager panelManager = statusPanel.GetComponent <Traits_Panel_Manager>();

            if (!panelManager.HasTarget())
            {
            }
        }
    }
    public void ShowScreen()
    {
        gameObject.SetActive(true);

        selectedLocation = null;

        foreach (GameObject taskPanel in taskPanels)
        {
            GameObject.Destroy(taskPanel);
        }
        taskPanels.Clear();

        // Character
        Character character = characterManager.GetCharacter();

        GameObject characterTaskPanel            = GameObject.Instantiate(taskManagerTemplate, taskManagerPanelParent, false);
        Screen_Scavenge_Task_Manager taskManager = characterTaskPanel.GetComponent <Screen_Scavenge_Task_Manager>();

        taskManager.TargetCharacter(character);
        taskPanels.Add(characterTaskPanel);

        currentMap = 0;
        RepopulateLocations();
    }