//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>(); }
// 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(); }
void Start() { GM = GameManager.instance; aux = AuxManager.instance; EM = EffectsManager.instance; PM = PlayerManager.instance; player = aux.GetPlayer(); }
// 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>(); }
void Start() { EM = EffectsManager.instance; PM = PlayerManager.instance; aux = AuxManager.instance; player = aux.GetPlayer(); bulletPool = aux.GetGroundBulletPool(); }
// 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); }
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; }
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>(); }
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; }
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>(); }
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; }
// Start is called before the first frame update void Start() { aux = AuxManager.instance; player = aux.GetPlayer().transform; camFollow = aux.GetCamera().GetComponent <CameraFollow>(); }
// Use this for initialization void Start() { aux = AuxManager.instance; GM = GameManager.instance; player = aux.GetPlayer().transform; }
// Use this for initialization void Start() { aux = AuxManager.instance; player = aux.GetPlayer(); }