public bool TakeEntityOnPositionInHandTry(DataSlot slot, Vector2 positionCreateHand) { if (slot == null) { throw new ArgumentNullException(nameof(slot)); } var entitySource = DatabaseReadOnly.GetEntityOrNull(slot); if (entitySource == null) { return(false); } if (Debug.DebugMode) { _point = Debug.PointForDebug.InstantiateOnRootCanvas().transform; _point.SetAsLastSibling(); } TakeEntityInHand(entitySource); var entityComponent = _bindComponentToDataDbRead.GetEntityComponent(entitySource); _handView = new HandView(entityComponent, HandData.DataEntityHand); _handView.PositionSet(positionCreateHand); return(true); }
protected override void Awake() { handHidden = handHiddenGO.GetComponent <IHandView>(); weaponCard = weaponGO.GetComponent <ICardView>(); handCards = handCardsGO.GetComponent <ICardListView>(); propertyCards = propertyCardsGO.GetComponent <ICardListView>(); skill = skillGO.GetComponent <ISkillView>(); TurnView = turnCountdownGO.GetComponent <ICountdownView>(); ResponseView = responseCountdownGO.GetComponent <ICountdownView>(); turnCountdownGO.SetActive(false); responseCountdownGO.SetActive(false); base.Awake(); SetTurn(false); }