Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     PM        = PlayerManager.instance;
     EM        = EffectsManager.instance;
     aux       = AuxManager.instance;
     player    = aux.GetPlayer();
     throwHook = player.GetComponent <ThrowHook>();
 }
Exemple #2
0
    void Start()
    {
        lr = GetComponent <LineRenderer> ();

        player    = GameObject.FindGameObjectWithTag("Player");
        throwHook = player.GetComponent <ThrowHook> ();
        lastNode  = transform.gameObject;
        nodes.Add(transform.gameObject);
    }
 private void Start()
 {
     aux = AuxManager.instance;
     GM  = GameManager.instance;
     EM  = EffectsManager.instance;
     rb  = GetComponent <Rigidbody2D>();
     grabbableObjectsList = new List <GameObject>();
     grabObjectIndicator  = aux.GetGrabObjectIndicator();
     line      = GetComponent <LineRenderer>();
     camFollow = aux.GetCamera().GetComponent <CameraFollow>();
     throwHook = GetComponent <ThrowHook>();
     hinge     = GetComponent <HingeJoint2D>();
     disJoint  = GetComponent <DistanceJoint2D>();
 }
Exemple #4
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>();
 }
Exemple #5
0
 // Use this for initialization
 void Start()
 {
     throwHook = GameObject.FindGameObjectWithTag("Player").GetComponent <ThrowHook> ();
 }