void Start() { mana = GetComponent <Mana>(); fallingAnimator = transform.GetChild(0).GetComponent <Animator>(); doubleJump = transform.GetChild(1).GetComponent <Animator>(); sounds = GetComponentInChildren <AttackSounds>(); }
private void Start() { animator = transform.GetChild(0).GetComponent <Animator>(); effects = transform.GetChild(1).GetComponent <Animator>(); cooldown = new Cooldown(cooldownTime); sounds = GetComponentInChildren <AttackSounds>(); }
private void Start() { health = GetComponent <Health>(); mana = GetComponent <Mana>(); healingAnim = transform.GetChild(1).GetComponent <Animator>(); playerAnim = transform.GetChild(0).GetComponent <Animator>(); attackSounds = GetComponentInChildren <AttackSounds>(); }
private void Start() { attackSounds = GetComponent <AttackSounds>(); int building = LayerMask.NameToLayer("Building"); int enemy = LayerMask.NameToLayer("Enemy"); layerMask = (1 << building) | (1 << enemy); }
//private Animator animator; // Use this for initialization private void Start() { cursor = GetComponent <MouseCursor>(); shooter = GetComponent <Shooter>(); if (!shooter) { Debug.Log("Dependence not found: shooter"); } if (!(meleeAttacker = GetComponent <MeleeAttacker>())) { Debug.Log("Dependence not found: meleeAttacker"); } if (!(shield = GetComponent <Shield>())) { Debug.Log("Dependence not found: shield"); } skillHealing = GetComponent <SkillHealing>(); jumper = GetComponent <SkillJumper>(); sounds = GetComponentInChildren <AttackSounds>(); //animator = transform.GetChild(1).GetComponent<Animator>(); cursor.ChangueCursor((int)CurrentMode); }
private void Start() { rb = GetComponent <Rigidbody2D>(); nextAvailableChargeTime = Time.time; attackSounds = GetComponentInChildren <AttackSounds>(); }
private void Start() { //spriteRenderer = GetComponentInChildren<SpriteRenderer>(); attackSounds = GetComponentInChildren <AttackSounds>(); Init(); }
private void Start() { sounds = GetComponentInChildren <AttackSounds>(); Init(); }