public RPC_Manager(DataManager _dataManager, PhotonView _photonView, CardAnimator _cardAnimator, CardFunctions _cardFunctions) { dataManager = _dataManager; photonView = _photonView; cardAnimator = _cardAnimator; cardFunctions = _cardFunctions; }
private void Awake() { cardInfo = GetComponent <CardInfo>(); animator = GetComponent <CardAnimator>(); border.enabled = false; x_mark.enabled = false; }
private void Awake() { #if !UNITY_EDITOR fingerID = 0; #endif ImageDisplay = GameObject.FindWithTag("ImageDisplay").GetComponent <ImageDisplay>(); cardAnimator = GameObject.FindWithTag("CardsPool").GetComponent <CardAnimator>(); PlayingDeck = GameObject.FindWithTag("PlayingDeck"); }
//================================================================== public void InitializeKC() { if (Deck == null) { Deck = GameObject.FindGameObjectWithTag("GameManager").GetComponent <DeckManager> (); } if (Animator == null) { Animator = GameObject.FindGameObjectWithTag("GameManager").GetComponent <CardAnimator> (); } if (CardObject == null) { CardObject = GameObject.FindGameObjectWithTag("Card"); } if (!CardObject.activeInHierarchy) { CardObject.SetActive(true); } if (InformationPanel == null) { InformationPanel = GameObject.FindGameObjectWithTag("InfoPanel"); } if (InformationPanel.activeInHierarchy) { InformationPanel.SetActive(false); } if (MenuPanel == null) { MenuPanel = GameObject.FindGameObjectWithTag("MenuPanel"); } if (MenuPanel.activeInHierarchy) { MenuPanel.SetActive(false); } CardCount = 0; KingCount = 0; CurrentCard = null; RandomKCDeck = null; if (KCRules == null) { InitializeKCRules(); } InitializeRandomKCDeck(); NextCard(); isActive = true; }
public InputHandler(Camera mainCamera, CardAnimator animator) { Debug.Log("Create instance of input handler"); _mainCamera = mainCamera; _animator = animator; }
public CardComponentEventListener(CardAnimator animator) { _animator = animator; }
private void Awake() { cardLoader = GetComponent <CardLoader>(); cardAnimator = GetComponent <CardAnimator>(); }
// Use this for initialization void Awake() { anim = GetComponent <CardAnimator> (); isSelectable = true; }