Esempio n. 1
0
 public void Initialise(Action actionData, ActionMenuController actionMenuController)
 {
     _actionData           = actionData;
     _actionNameText.text  = _actionData.ActionName;
     _actionMenuController = actionMenuController;
     _entryDescription     = _actionData.ActionDescription;
 }
Esempio n. 2
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     if (panel == null)
     {
         panel = transform.gameObject;
     }
 }
    /*public void GoToMainMenu()
     * {
     *  SMController.SetTrigger("GoToMainMenu");
     * }
     * public void GoToInit()
     * {
     *  SMController.SetTrigger("GoToInit");
     * }*/



    /// <summary>
    /// funzione che mi iscrive a tutti gli eventi
    /// </summary>
    public void SetupManager()
    {
        vfx          = FindObjectOfType <VfxManager>();
        lm           = GetComponent <LifeManager>();
        lm           = FindObjectOfType <LifeManager>();
        tm           = FindObjectOfType <TurnManager>();
        hud          = FindObjectOfType <HudManagerTest>();
        mc           = FindObjectOfType <MainMenùController>();
        acm          = FindObjectOfType <ActionMenuController>();
        sc           = FindObjectOfType <SelectionController>();
        stateMachine = FindObjectOfType <FlowSM>();
        _player      = FindObjectOfType <Player>();
        sc2          = FindObjectOfType <SelectControllerP2>();
        buttNav      = FindObjectOfType <ButtonNavigation>();

        musicGame  = GameObject.FindGameObjectWithTag("MusicBattle");
        musicMenu  = GameObject.FindGameObjectWithTag("MusicGame");
        animDragon = GameObject.FindGameObjectWithTag("Dragon");
        hudUnit    = GameObject.FindGameObjectWithTag("HUDUnit1");
        hudUnit2   = GameObject.FindGameObjectWithTag("HUDUnit2");
    }
Esempio n. 4
0
 public void Initialise(ActionMenuController.ActionMenus rootMenuType, ActionMenuController actionMenuController)
 {
     _rootMenuType         = rootMenuType;
     _actionMenuController = actionMenuController;
     _entryDescription     = _rootEntryDescription;
 }
 // Use this for initialization
 void Start()
 {
     AMC = FindObjectOfType <ActionMenuController>();
 }