Esempio n. 1
0
 private void Start()
 {
     ba = GetComponent <BeilanAttack>();
     Physics2D.IgnoreLayerCollision(8, 10, false);
     rend   = GetComponent <Renderer>();
     c      = rend.material.color;
     health = startHealth;
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     iniWallCheckDistance = wallCheckDistance;
     rb = GetComponent <Rigidbody2D>();
     ba = GetComponent <BeilanAttack>();
     bh = GetComponent <BeilanHealth>();
     wallHopDirection.Normalize();
     wallJumpDirection.Normalize();
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     beilan = GameObject.FindGameObjectWithTag("Player");
     rb     = gameObject.GetComponent <Rigidbody2D>();
     ba     = beilan.GetComponent <BeilanAttack>();
 }