Exemplo n.º 1
0
 void Start()
 {
     GM              = GameManager.instance;
     aux             = AuxManager.instance;
     EM              = EffectsManager.instance;
     PM              = PlayerManager.instance;
     cam             = aux.GetCamera();
     player          = aux.GetPlayer();
     playerThrowHook = player.GetComponent <ThrowHook>();
     lastNode        = gameObject;
     nodePool        = aux.GetNodePool();
     nodeList        = new List <GameObject>();
     nodeList.Add(transform.gameObject);
     line      = GetComponent <LineRenderer>();
     camFollow = cam.GetComponent <CameraFollow>();
     rb        = GetComponent <Rigidbody2D>();
     //edgeCol = GetComponent<EdgeCollider2D>();
 }