Exemple #1
0
 public void Start()
 {
     anim   = GetComponent <AnimationControllerCustom>();
     render = GetComponent <SpriteRenderer>();
     rb     = GetComponent <Rigidbody2D>();
     anim.ChangeAnimation("idle");
 }
Exemple #2
0
 void Start()
 {
     anim = GetComponent <AnimationControllerCustom>();
     rb   = GetComponent <Rigidbody2D>();
     pm   = GameObject.Find("Hero").GetComponent <Mage>();
     SoundManager.instance.Play(SoundID.ICE);
 }
Exemple #3
0
 // 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;
 }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     timer1 = 2;
     timer2 = 5;
     timer3 = 2;
     anim   = this.GetComponent <AnimationControllerCustom>();
     rb     = this.GetComponent <Rigidbody2D>();
 }
Exemple #5
0
    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;
 }
Exemple #7
0
 public void Start()
 {
     anim         = GetComponent <AnimationControllerCustom>();
     render       = GetComponent <SpriteRenderer>();
     rb           = GetComponent <Rigidbody2D>();
     attackvision = GetComponentInChildren <AttackVision>();
     direcction   = 1;
     anim.ChangeAnimation("idle");
     getDamage = false;
 }
Exemple #8
0
    private void Start()
    {
        anim   = GetComponent <AnimationControllerCustom>();
        render = GetComponent <SpriteRenderer>();
        rb     = GetComponentInParent <Rigidbody2D>();

        player = GetComponentInParent <Character>();
        anim.ChangeAnimation(AnimationName.feet_Idle);

        isIdle = true;
    }
Exemple #9
0
 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;
 }
Exemple #10
0
    // 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;
    }
Exemple #11
0
 // Use this for initialization
 void Start()
 {
     anim = GetComponent <AnimationControllerCustom>();
     rb   = GetComponent <Rigidbody2D>();
 }
Exemple #12
0
 // Use this for initialization
 void Start()
 {
     anim   = this.GetComponent <AnimationControllerCustom>();
     timer1 = 3;
     timer2 = 2;
 }