void Awake() { playerSprite = GetComponent <SpriteRenderer>(); rBody = GetComponent <Rigidbody2D>(); animator = GetComponent <Animator>(); gunSystem_Data = GetComponent <GunSystem>(); Pause_Data = GameObject.Find("GameComponent").GetComponent <Pause>(); }
public GunSpreadOverlay(IEntityManager entManager, IEyeManager eyeManager, IGameTiming timing, IInputManager input, IPlayerManager player, GunSystem system) { _entManager = entManager; _eye = eyeManager; _input = input; _timing = timing; _player = player; _guns = system; }
private void Start() { if (!gun) { gun = GetComponentInParent <GunSystem>(); } gun.OnProjectileRaycast.AddListener(ShowTracer); }
void Awake() { ropeJoint.enabled = false; playerPosition = transform.position; ropeHingeAnchorRb = ropeHingeAnchor.GetComponent <Rigidbody2D>(); ropeHingeAnchorSprite = ropeHingeAnchor.GetComponent <SpriteRenderer>(); ropeHingeAnchorParticle = ropeHingeAnchor.GetComponent <ParticleSystem>(); activateOrNotGun = this.GetComponent <GunSystem>(); blinkData = GameObject.Find("E").GetComponent <Blink>(); }
private void Awake() { entities = new List <Entity>(); newEntities = new Queue <Entity>(); expiredEntities = new Queue <Entity>(); entitySystem = new EntitySystem(this); inputSystem = new InputSystem(this); moveSystem = new MoveSystem(this); controllerSystem = new ControllerSystem(this); gunSystem = new GunSystem(this); bulletSystem = new BulletSystem(this); buffSystem = new BuffSystem(this); aiSystem = new AISystem(this); levelSystem = new LevelSystem(this); }
private void Start() { gunSystem = GetComponent <GunSystem>(); lastFireState = gunSystem.TriggerDown; rotationIncrement = angleDeltaPerShot / gunSystem.FireRate; //var AITargeting = GetComponent<AITargetingBehaviour>(); //if (AITargeting) //{ // AITargeting.OnFiring.AddListener(Firing); //} //else //{ //} currentRotationRate = state == SpinMode.AtSpeed ? rotationSpeedMultiplier : 0; }
void Start() { healthandscore = GameObject.Find("Gobel").GetComponent <HealthandScore>(); gunsystem = GameObject.Find("Main Camera").GetComponent <GunSystem>(); GameControl = GameObject.Find("Main Camera").GetComponent <GameControl>(); }
private void Start() { controller = GetComponentInParent <VRTK_ControllerEvents>(); gun = GetComponentInChildren <GunSystem>(); }
// Use this for initialization void Start() { shootOrNot = GameObject.Find("Player").GetComponent <GunSystem>(); }
// Use this for initialization void Start() { gunSystem = GameManager.Instance.ThePlayer.GetComponent <GunSystem>(); }