// Use this for initialization
 void Start()
 {
     collisionComponent = GetComponent <CharacterCollision> ();
     rb = GetComponent <Rigidbody2D> ();
     enemyKillComponent       = GetComponent <EnemyKilling> ();
     chainConnectionComponent = GetComponent <ChainConnection> ();
 }
Beispiel #2
0
 void Awake()
 {
     mainCharacter          = GameObject.FindWithTag("Player").GetComponent <ShootingMode>();
     fixedJoint             = GetComponent <FixedJoint2D> ();
     handleKilling          = GameObject.FindWithTag("Player").GetComponent <EnemyKilling>();
     arrowType              = GetComponent <Shoot> ();
     tugComponent           = mainCharacter.GetComponent <Tug> ();
     IgnoreOnCollisionEnter = false;
 }