Exemplo n.º 1
0
 void OnTriggerExit2D(Collider2D collider)
 {
     hookshot  = null;
     player    = null;
     canSwitch = false;
 }
Exemplo n.º 2
0
 void Start()
 {
     hookShot = GameObject.Find("player").GetComponent <HookShotScript>();
     joint2D  = GetComponent <DistanceJoint2D>();
 }
Exemplo n.º 3
0
 void OnTriggerEnter2D(Collider2D collider)
 {
     hookshot  = collider.GetComponent <HookShotScript> ();
     player    = collider.GetComponent <PlayerScript> ();
     canSwitch = true;
 }