private float timePassed; //The amount of time that passed since the last attack // Use this for initialization void Start() { parent = GameObject.Find("Bullets"); gunTransform = GetComponent <Transform>(); player = GetComponentInParent <JustinPlayerControllerNN>(); timePassed = attackSpeed; }
private float timePassed; //The amount of time that passed since the last increase // Use this for initialization void Start() { timePassed = 0f; body = GetComponent <JustinPlayerControllerNN> (); if (body == null) { enabled = false; } }
private JustinPlayerControllerNN player; //The controller responsible for moving the player // Use this for initialization void Start() { player = GetComponentInParent <JustinPlayerControllerNN>(); //Retrieves the current controller that is making the player move }
private bool movedUp; //Whether or not the gun is elevated // Use this for initialization void Start() { movedUp = false; rigidBod = GetComponent <Rigidbody2D>(); controller = GetComponent <JustinPlayerControllerNN>(); }