void LocalInit() { propagation = EventPropagation.TricklesDown; relatedTarget = null; direction = FocusChangeDirection.unspecified; focusController = null; }
private RuntimePanel(ScriptableObject ownerObject) : base(ownerObject, s_EventDispatcher) { focusController = new FocusController(new NavigateFocusRing(visualTree)); m_PanelSettings = ownerObject as PanelSettings; name = m_PanelSettings != null ? m_PanelSettings.name : "RuntimePanel"; }
private void Start() { // Get player instance playerManager = PlayerManager.Instance.player.GetComponent <PlayerManager>(); focusController = playerManager.player.GetComponent <FocusController>(); }
public void TestInit() { serviceMock = new Mock <IFocusService>(); serviceMock.Setup(x => x.GetAsync(It.IsAny <QueryableOperator <FocusDTO> >())) .ReturnsAsync(new PagedQueryResults <FocusDTO>(1, new List <FocusDTO>())); controller = new FocusController(serviceMock.Object); }
protected override void Init() { base.Init(); flags = EventFlags.TricklesDown; relatedTarget = null; direction = FocusChangeDirection.unspecified; m_FocusController = null; }
private void Awake() { player = GameObject.FindGameObjectWithTag("Player"); playerManager = player.GetComponent <PlayerManager>(); characterStats = playerManager.player.GetComponent <AllCharacterStats>(); focusController = playerManager.player.GetComponent <FocusController>(); shop = focusController.focus.interactionPoint.GetComponent <Shop>().transform; itemSpawnPos = focusController.focus.interactionPoint.GetComponent <Shop>().itemsSpawnPosition; }
public void Start() { playerManager = PlayerManager.Instance.player.GetComponent <PlayerManager>(); characterStats = playerManager.player.GetComponent <AllCharacterStats>(); focusController = playerManager.player.GetComponent <FocusController>(); if (interactionPoint == null) { interactionPoint = this.transform; } }
// Start is called before the first frame update void Start() { shop = transform.GetComponent <Shop>(); player = GameObject.FindGameObjectWithTag("Player").gameObject; focusController = player.GetComponent <FocusController>(); characterNameUI.text = shopBP.shopName; if (!isSetup) { shopCanvas.gameObject.SetActive(false); } }
// Used the Player Instance Class to avoid slowdowns //private GameObject playerInstance; // In order to avoid having to drag and drop each Gameobject to every single coin we create, // we can use GetComponent and search all the game files for the specific gameobject, this // is not a perfect solution but we only do it once right before the game starts. private void Start() { // Removed this in order to prevent unessesary game slowdowns // Replaced it with an instance of the player in 1 global script //GameObject Player = GameObject.Find("Player"); //focusController = Player.GetComponent<FocusController>(); //characterStats = Player.GetComponent<AllCharacterStats>(); // Get player instance playerManager = PlayerManager.Instance.player.GetComponent <PlayerManager>(); focusController = playerManager.player.GetComponent <FocusController>(); characterStats = playerManager.player.GetComponent <AllCharacterStats>(); }
public void Start() { playerManager = PlayerManager.Instance.player.GetComponent <PlayerManager>(); characterStats = playerManager.player.GetComponent <AllCharacterStats>(); focusController = playerManager.player.GetComponent <FocusController>(); if (interactionPoint == null) { interactionPoint = this.transform; } // set the health on spawn of enemy health = enemy.maxHealth; }
public static T GetPooled(IEventHandler target, Focusable relatedTarget, FocusChangeDirection direction, FocusController focusController, bool bIsFocusDelegated = false) { T e = GetPooled(); e.target = target; e.relatedTarget = relatedTarget; e.direction = direction; e.focusController = focusController; e.IsFocusDelegated = bIsFocusDelegated; return(e); }
public static T GetPooled(IEventHandler target, Focusable relatedTarget, FocusChangeDirection direction, FocusController focusController) { T e = GetPooled(); e.target = target; e.relatedTarget = relatedTarget; e.direction = direction; e.focusController = focusController; return(e); }