Exemplo n.º 1
0
        // *------- METHODES ANNEXES

        public override void CreateBigCard(string messageToDisplay = "")
        {
            base.CreateBigCard(
                Name + "\n" +
                "Niveau" + Niveau.ToString());

            BigCard.GetComponent <Sort>().SortState = Sort.State.BIGCARD;
        }
Exemplo n.º 2
0
 void Start()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     instance = this;
     frame    = transform.GetChild(1).GetComponent <Image>();
     art      = transform.GetChild(2).GetComponent <Image>();
     name     = transform.GetChild(4).GetComponent <Text>();
     effect   = transform.GetChild(3).GetComponent <Text>();
 }
Exemplo n.º 3
0
 private void Awake()
 {
     s_instance = this;
     this.m_initialBannerHeight      = this.m_EnchantmentBanner.GetComponent <Renderer>().bounds.size.z;
     this.m_initialBannerScale       = this.m_EnchantmentBanner.transform.localScale;
     this.m_initialBannerBottomScale = this.m_EnchantmentBannerBottom.transform.localScale;
     this.m_enchantmentPool.SetCreateItemCallback(new Pool <BigCardEnchantmentPanel> .CreateItemCallback(this.CreateEnchantmentPanel));
     this.m_enchantmentPool.SetDestroyItemCallback(new Pool <BigCardEnchantmentPanel> .DestroyItemCallback(this.DestroyEnchantmentPanel));
     this.m_enchantmentPool.SetExtensionCount(1);
     this.m_enchantmentPool.SetMaxReleasedItemCount(2);
     this.ResetEnchantments();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creation de la carte zoomée.
 /// </summary>
 /// <param name="messageToDisplay"></param>
 public override void CreateBigCard(string messageToDisplay = "")
 {
     base.CreateBigCard("Assistance " + "\n" +
                        Name + "\n");
     BigCard.GetComponent <Assistance>().AssistanceState = State.BIGCARD;
 }
 private bool CheckCriticalAssetLoads()
 {
     if (!this.m_criticalAssetsLoaded)
     {
         if (Board.Get() == null)
         {
             return(false);
         }
         if (BoardCameras.Get() == null)
         {
             return(false);
         }
         if (BoardStandardGame.Get() == null)
         {
             return(false);
         }
         if (GameMgr.Get().IsTutorial() && (BoardTutorial.Get() == null))
         {
             return(false);
         }
         if (MulliganManager.Get() == null)
         {
             return(false);
         }
         if (TurnStartManager.Get() == null)
         {
             return(false);
         }
         if (TargetReticleManager.Get() == null)
         {
             return(false);
         }
         if (GameplayErrorManager.Get() == null)
         {
             return(false);
         }
         if (EndTurnButton.Get() == null)
         {
             return(false);
         }
         if (BigCard.Get() == null)
         {
             return(false);
         }
         if (CardTypeBanner.Get() == null)
         {
             return(false);
         }
         if (TurnTimer.Get() == null)
         {
             return(false);
         }
         if (CardColorSwitcher.Get() == null)
         {
             return(false);
         }
         if (RemoteActionHandler.Get() == null)
         {
             return(false);
         }
         if (ChoiceCardMgr.Get() == null)
         {
             return(false);
         }
         if (InputManager.Get() == null)
         {
             return(false);
         }
         this.m_criticalAssetsLoaded = true;
         this.ProcessQueuedPowerHistory();
     }
     return(true);
 }