Example #1
0
    //private Rigidbody2D playerRb;


    /* public float nearCamZoom = 0.5f;
     * public float farCamZoom = 1f;
     * public float normalSpeed = 1f;
     * public float maxSpeed = 10f;
     * public float timeToZoom = 1f;*/
    // Use this for initialization
    void Start()
    {
        cam = GetComponent <Camera>();
        aux = AuxManager.instance;

        targets = new List <Transform>();
        targets.Add(aux.GetPlayer().transform);
        playerTrans = aux.GetPlayer().transform;

        /*target = aux.GetPlayer().transform;*/
        playerRb = playerTrans.GetComponent <Rigidbody2D>();
    }
Example #2
0
    // Start is called before the first frame update
    void Start()
    {
        //throwHook = AuxManager.instance.GetPlayer().GetComponent<ThrowHook>();
        EM            = EffectsManager.instance;
        PM            = PlayerManager.instance;
        aux           = AuxManager.instance;
        player        = aux.GetPlayer();
        attachedRopes = new List <RopeScript>();
        sRenderer     = GetComponent <SpriteRenderer>();

        if (isFriendly)
        {
            TurnFriendly();
        }

        else
        {
            TurnDeadly();
        }


        if (randomSprite)
        {
            sRenderer.sprite = aux.GetGrabberSprite();
        }
    }
 void Start()
 {
     GM  = GameManager.instance;
     aux = AuxManager.instance;
     PM  = PlayerManager.instance;
     //hooksList = new List<GameObject>();
     player = aux.GetPlayer();
 }
Example #4
0
 void Start()
 {
     GM     = GameManager.instance;
     aux    = AuxManager.instance;
     EM     = EffectsManager.instance;
     PM     = PlayerManager.instance;
     player = aux.GetPlayer();
 }
Example #5
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>();
 }
Example #6
0
 void Start()
 {
     EM         = EffectsManager.instance;
     PM         = PlayerManager.instance;
     aux        = AuxManager.instance;
     player     = aux.GetPlayer();
     bulletPool = aux.GetGroundBulletPool();
 }
Example #7
0
 // Start is called before the first frame update
 void Start()
 {
     rb         = GetComponent <Rigidbody2D>();
     EM         = EffectsManager.instance;
     aux        = AuxManager.instance;
     bulletPool = aux.GetGroundBulletPool();
     player     = aux.GetPlayer();
     shooter    = transform.GetChild(0);
     shootPoint = shooter.GetChild(0);
 }
Example #8
0
 void Start()
 {
     aux       = AuxManager.instance;
     EM        = EffectsManager.instance;
     player    = aux.GetPlayer().transform;
     sRenderer = GetComponent <SpriteRenderer>();
     rb        = GetComponent <Rigidbody2D>();
     camFollow = aux.GetCamera().GetComponent <CameraFollow>();
     ChangeColor();
     alreadyStarted = true;
 }
Example #9
0
 private void Start()
 {
     SHM                = SpawnHookManager.instance;
     AM                 = AuxManager.instance;
     PM                 = PlayerManager.instance;
     player             = AM.GetPlayer();
     transform.position = player.transform.position;
     ShowMainMenu();
     //bestScoreMainMenuText.text = "Best Score: " + GetBestScore();
     heartList = new List <GameObject>();
 }
Example #10
0
 void Start()
 {
     GM       = GameManager.instance;
     aux      = AuxManager.instance;
     EM       = EffectsManager.instance;
     PM       = PlayerManager.instance;
     rb       = GetComponent <Rigidbody2D>();
     line     = GetComponent <LineRenderer>();
     player   = aux.GetPlayer();
     playerRb = player.GetComponent <Rigidbody2D>();
     //disJoint.enabled = false;
 }
Example #11
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>();
 }
Example #12
0
 private void Start()
 {
     aux    = AuxManager.instance;
     player = aux.GetPlayer();
     //EM = EffectsManager.instance;
 }
 private void Start()
 {
     aux    = AuxManager.instance;
     EM     = EffectsManager.instance;
     player = aux.GetPlayer().transform;
 }
Example #14
0
 // Start is called before the first frame update
 void Start()
 {
     aux       = AuxManager.instance;
     player    = aux.GetPlayer().transform;
     camFollow = aux.GetCamera().GetComponent <CameraFollow>();
 }
Example #15
0
 // Use this for initialization
 void Start()
 {
     aux    = AuxManager.instance;
     GM     = GameManager.instance;
     player = aux.GetPlayer().transform;
 }
Example #16
0
 // Use this for initialization
 void Start()
 {
     aux    = AuxManager.instance;
     player = aux.GetPlayer();
 }