// Use this for initialization void Start() { theRigidBody = GetComponent <Rigidbody2D>(); sr = GetComponent <SpriteRenderer>(); lsr = legsSprite.GetComponent <SpriteRenderer>(); pAim = GameObject.FindObjectOfType(typeof(playerAim)) as playerAim; smScript = SoundManager.GetComponent <soundManager>(); pShoot = GameObject.FindObjectOfType(typeof(playerShoot)) as playerShoot; }
// Use this for initialization void Start() { theRigidBody = GetComponent <Rigidbody2D>(); pAim = GameObject.FindObjectOfType(typeof(playerAim)) as playerAim; animationController = ShotRenderer.GetComponent <Animator>(); hitbox = ShotRenderer.GetComponent <PolygonCollider2D>(); scoreText = GameObject.Find("scorep" + playerNumber).GetComponent <Text>(); smScript = SoundManager.GetComponent <soundManager>(); pMove = this.gameObject.GetComponent <playerMove>(); victoryCanvas.enabled = true; }
public GameObject anaNode; //ANALYTICS void Start() { // TM = transform.parent.GetComponent<TimeManager>(); TeleK = GetComponent <Telekinesis>(); TimeSlow = GetComponent <TimeSlow>(); reticule = GetComponent <playerAim>(); MindBullets = GetComponent <MindBullets>(); selectWeapon(Weapon.NoWeapon); }