private void Awake() { m_dXT3R = GetComponent <DXT3R>(); m_havocMovement = GetComponent <HavocMovement>(); m_havocAnimator = GetComponent <HavocAnimator>(); m_audioSource = GetComponent <AudioSource>(); m_canDashFromCharge = true; }
private void Update() { float y = transform.position.y; DXT3R dXT3R = HavocInc.Instance.CurrentTester; if (dXT3R) { if (dXT3R.transform.position.y > y) { m_spriteRenderer.sortingOrder = m_zIndexInFront; } else { m_spriteRenderer.sortingOrder = m_zIndexNormal; } } }
void Awake() { m_dxt3R = GetComponent <DXT3R>(); m_havocMovement = GetComponent <HavocMovement>(); m_animator = GetComponent <Animator>(); }