// Use this for initialization void Start() { //selectBox = GameObject.FindObjectOfType<SelectBoxFunctionality>(); //selectBox.GetComponent<SelectBoxFunctionality>().selectablePlayers.Add(this.gameObject.GetComponent<FriendlyMovement>()); friendlyCapsule = GetComponent <CapsuleCollider>(); characterController = GetComponent <CharacterController>(); gun = gameObject.GetComponentInChildren <FriendlyFireGun>(); attackTargetEnemy = GetComponent <AttackTargetEnemy>(); handleEnterStructure = GetComponent <HandleEnterStructure>(); }
// Use this for initialization void Start() { gun = gameObject.GetComponentInChildren <FriendlyFireGun>(); friendlyMovement = GetComponent <FriendlyMovement>(); }