// Use this for initialization void Start() { _sessionManager = GameObject.FindGameObjectWithTag("tSession").GetComponent <LFSessionManager>(); _userInput = new LFUserInput(); _userInput.exitAction += CancelAction; ShowResult(); }
private void RemoveUserInput() { if (_userInput != null) { _userInput.Clean(); _userInput = null; } }
// Use this for initialization void Start() { _anim = gameObject.GetComponent <Animator> (); _collidedEnemy = new List <GameObject> (); _userInput = new LFUserInput(); _userInput.attackAction += Attack; _userInput.attackEndAction += EndAttack; _userInput.eatAction += Eat; }
// Use this for initialization void Start() { _rowList = new List <GameObject> (); _sessionManager = GameObject.FindGameObjectWithTag("tSession").GetComponent <LFSessionManager>(); if (_sessionManager != null && _sessionManager.GetCurrentSession() != null) { CreateLeadboardRows(); } _userInput = new LFUserInput(); _userInput.exitAction += CancelAction; }
// Use this for initialization void Start() { _userInput = new LFUserInput(); _userInput.exitAction += CancelAction; _sessionManager = GameObject.FindGameObjectWithTag("tSession").GetComponent <LFSessionManager>(); if (_sessionManager != null && _sessionManager.GetCurrentSession() != null) { _session = _sessionManager.GetCurrentSession(); } playerName.text = _session.PlayerName; }
// Use this for initialization void Start() { _userInput = new LFUserInput(); _userInput.exitAction += CancelAction; }
// Use this for initialization void Start() { _anim = gameObject.GetComponent <Animator> (); _userInput = new LFUserInput(); }