public void Start() { anim = GetComponent <AnimationControllerCustom>(); render = GetComponent <SpriteRenderer>(); rb = GetComponent <Rigidbody2D>(); anim.ChangeAnimation("idle"); }
void Start() { anim = GetComponent <AnimationControllerCustom>(); rb = GetComponent <Rigidbody2D>(); pm = GameObject.Find("Hero").GetComponent <Mage>(); SoundManager.instance.Play(SoundID.ICE); }
// Use this for initialization void Start() { anim = this.GetComponent <AnimationControllerCustom>(); rb = this.GetComponent <Rigidbody2D>(); boxc = this.GetComponent <BoxCollider2D>(); rb.constraints = RigidbodyConstraints2D.FreezePositionX | RigidbodyConstraints2D.FreezePositionY | RigidbodyConstraints2D.FreezeRotation; timer1 = 1.1f; }
// Use this for initialization void Start() { timer1 = 2; timer2 = 5; timer3 = 2; anim = this.GetComponent <AnimationControllerCustom>(); rb = this.GetComponent <Rigidbody2D>(); }
private void Start() { feets = GetComponentInParent <FeetPart>(); anim = GetComponent <AnimationControllerCustom>(); render = GetComponent <SpriteRenderer>(); collideras = GetComponentInParent <ColliderManager>(); gunActive = true; }
public void Start() { feets = GetComponentInParent <Janna>(); anim = GetComponent <AnimationControllerCustom>(); render = GetComponent <SpriteRenderer>(); //feets.rb = GetComponent<Rigidbody2D>(); gunActive = true; anim.ChangeAnimation("idle"); canHurt = true; }
public void Start() { anim = GetComponent <AnimationControllerCustom>(); render = GetComponent <SpriteRenderer>(); rb = GetComponent <Rigidbody2D>(); attackvision = GetComponentInChildren <AttackVision>(); direcction = 1; anim.ChangeAnimation("idle"); getDamage = false; }
private void Start() { anim = GetComponent <AnimationControllerCustom>(); render = GetComponent <SpriteRenderer>(); rb = GetComponentInParent <Rigidbody2D>(); player = GetComponentInParent <Character>(); anim.ChangeAnimation(AnimationName.feet_Idle); isIdle = true; }
void Start() { Jumping = false; Casting = false; Running = false; Ducking = false; anim = this.GetComponent <AnimationControllerCustom>(); MaxLife = 50; Lives = 1; Life = MaxLife; lifeBar = GameObject.Find("Canvas").transform.Find("Lifebar").GetComponent <Image>(); //lifeBar.transform.parent = GameObject.Find("Canvas").transform; spellIcon = GameObject.Find("Canvas").transform.Find("SpellIcon").GetComponent <Image>(); // spellIcon.transform.parent = GameObject.Find("Canvas").transform; originalScale = this.transform.localScale; }
// Use this for initialization void Start() { anim = GetComponent <AnimationControllerCustom>(); render = GetComponent <SpriteRenderer>(); rb = GetComponentInParent <Rigidbody2D>(); collideras = GetComponentInParent <ColliderManager>(); //isMoving = false; ////isDowning = false; //isStandUping = false; //isIdleDown = false; //isShooting = false; //select1 = false; //select2 = false; //isReloading = false; //isDying = false; //isGettingDamage = false; //isAttackingMelee = false; //isAttackingMelee2 = false; //isAttackingMelee3 = false; ////isAttakcingMelee4 = false; //isThrowing = false; EndAction = true; }
// Use this for initialization void Start() { anim = GetComponent <AnimationControllerCustom>(); rb = GetComponent <Rigidbody2D>(); }
// Use this for initialization void Start() { anim = this.GetComponent <AnimationControllerCustom>(); timer1 = 3; timer2 = 2; }